diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-14 19:48:32 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-14 19:48:32 -0700 |
commit | 51f6671466afa72eef7d28aa6f00db406876a1cd (patch) | |
tree | 496a09dbd6f07c9394506eed72a4995825394137 /include/dba.php | |
parent | 2370a3f89b5f10e6c98edf019fe25d98eb58d401 (diff) | |
download | volse-hubzilla-51f6671466afa72eef7d28aa6f00db406876a1cd.tar.gz volse-hubzilla-51f6671466afa72eef7d28aa6f00db406876a1cd.tar.bz2 volse-hubzilla-51f6671466afa72eef7d28aa6f00db406876a1cd.zip |
only escape dbg tags when running in server mode
Diffstat (limited to 'include/dba.php')
-rw-r--r-- | include/dba.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/dba.php b/include/dba.php index 48dcc12a9..07142dbad 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 |