refactored esclfhtml function to avoid ASCII string output and removing NL
[brisk.git] / web / Obj / brisk.phh
index 20e6e3a..344b30e 100644 (file)
@@ -395,10 +395,9 @@ function eschtml($s)
 
 function esclfhtml($s)
 {
-    return str_replace("\n", "<br>\n", htmlentities($s));
+    return str_replace("\n", "<br>", htmlspecialchars($s));
 }
 
-
 function langtolng($lang)
 {
   GLOBAL $G_lang;
@@ -814,7 +813,7 @@ class Client_prefs {
             $user->rec->supp_comp_set($this->supp_comp);
         }
         if ($is_save)
-            $user->store_set();
+            $user->prefs_store();
     }
 }