From 0380cfa9eee1293b0c81802884aefbadaaab9671 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 13 Feb 2012 12:46:20 +0400 Subject: fix customize CSS dialog disappearing newlines --- include/db-prefs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/db-prefs.php') 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"]; -- cgit v1.2.3