From: Mike Macgirvin Date: Sun, 15 Aug 2010 02:48:32 +0000 (-0700) Subject: only escape dbg tags when running in server mode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=51f6671466afa72eef7d28aa6f00db406876a1cd;p=friendica.git only escape dbg tags when running in server mode --- diff --git a/include/dba.php b/include/dba.php index 48dcc12a98..07142dbadf 100644 --- a/include/dba.php +++ b/include/dba.php @@ -88,7 +88,10 @@ class dba { if(! function_exists('printable')) { function printable($s) { $s = preg_replace("~([\x01-\x08\x0E-\x0F\x10-\x1F\x7F-\xFF])~",".", $s); - return(escape_tags(str_replace("\x00",'.',$s))); + $s = str_replace("\x00",'.',$s); + if(x($_SERVER,'SERVER_NAME')) + $s = escape_tags($s); + return $s; }} // Procedural functions