X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbrisk.phh;h=df4c3f121d78b3692ceded6145f5616507298f48;hb=3bdf570693a9c6be8e3bff5d62b21dae18817f27;hp=03ec212463f1b4dd39a06b60008f74a8a6b93a1e;hpb=c16e845881b89f8f84524367a3b4bcf30f895bf8;p=brisk.git diff --git a/web/brisk.phh b/web/brisk.phh index 03ec212..df4c3f1 100644 --- a/web/brisk.phh +++ b/web/brisk.phh @@ -36,7 +36,10 @@ define(BRISK_DEBUG, FALSE); function xcape($s) { - return (str_replace('\\', '\\\\', str_replace('@', '@', str_replace('|', '¦', htmlentities($s,ENT_COMPAT,"UTF-8"))))); + $from = array ( '\\', '@', '|' ); + $to = array ( '\\\\', '@', '¦' ); + + return (str_replace($from, $to, htmlentities($s,ENT_COMPAT,"UTF-8"))); }