mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 17:35:57 +00:00
initialize_user_prefs: escape data on import
This commit is contained in:
@@ -548,6 +548,9 @@
|
|||||||
if (array_search($line["pref_name"], $active_prefs) === FALSE) {
|
if (array_search($line["pref_name"], $active_prefs) === FALSE) {
|
||||||
// print "adding " . $line["pref_name"] . "<br>";
|
// print "adding " . $line["pref_name"] . "<br>";
|
||||||
|
|
||||||
|
$line["def_value"] = db_escape_string($link, $line["def_value"]);
|
||||||
|
$line["pref_name"] = db_escape_string($link, $line["pref_name"]);
|
||||||
|
|
||||||
if (get_schema_version($link) < 63) {
|
if (get_schema_version($link) < 63) {
|
||||||
db_query($link, "INSERT INTO ttrss_user_prefs
|
db_query($link, "INSERT INTO ttrss_user_prefs
|
||||||
(owner_uid,pref_name,value) VALUES
|
(owner_uid,pref_name,value) VALUES
|
||||||
|
|||||||
Reference in New Issue
Block a user