only escape dbg tags when running in server mode
This commit is contained in:
parent
2370a3f89b
commit
51f6671466
1 changed files with 4 additions and 1 deletions
|
@ -88,7 +88,10 @@ class dba {
|
||||||
if(! function_exists('printable')) {
|
if(! function_exists('printable')) {
|
||||||
function printable($s) {
|
function printable($s) {
|
||||||
$s = preg_replace("~([\x01-\x08\x0E-\x0F\x10-\x1F\x7F-\xFF])~",".", $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
|
// Procedural functions
|
||||||
|
|
Loading…
Reference in a new issue