mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:45:55 +00:00
code cleanup, test for db_escape() crazyness in DB sanity check
This commit is contained in:
10
backend.php
10
backend.php
@@ -46,15 +46,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (DB_TYPE == "pgsql") {
|
||||
pg_query("set client_encoding = 'UTF-8'");
|
||||
pg_set_client_encoding("UNICODE");
|
||||
} else {
|
||||
if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
|
||||
db_query($link, "SET NAMES " . MYSQL_CHARSET);
|
||||
// db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
|
||||
}
|
||||
}
|
||||
init_connection($link);
|
||||
|
||||
$op = $_REQUEST["op"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user