summaryrefslogtreecommitdiff
path: root/include/db-prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-02-13 12:46:20 +0400
committerAndrew Dolgov <[email protected]>2012-02-13 12:46:20 +0400
commit0380cfa9eee1293b0c81802884aefbadaaab9671 (patch)
tree74c52da2e90c83a9a80ecf5494d40531814328df /include/db-prefs.php
parent86edc737f4fb9b035817486d4027f586ac744eb7 (diff)
fix customize CSS dialog disappearing newlines
Diffstat (limited to 'include/db-prefs.php')
-rw-r--r--include/db-prefs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/db-prefs.php b/include/db-prefs.php
index b62e01a7b..696aae5d1 100644
--- a/include/db-prefs.php
+++ b/include/db-prefs.php
@@ -79,9 +79,9 @@
}
}
- function set_pref($link, $pref_name, $value, $user_id = false) {
+ function set_pref($link, $pref_name, $value, $user_id = false, $strip_tags = true) {
$pref_name = db_escape_string($pref_name);
- $value = db_escape_string($value);
+ $value = db_escape_string($value, $strip_tags);
if (!$user_id) {
$user_id = $_SESSION["uid"];