X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=f52cfb35409936e871b1c7629b321f6b246ccdf4;hb=2f51ebc8ce6b76864e52b52bd59cbd9186635ddb;hp=6cb7f29bdf589c67949b936b284974522a154f33;hpb=dd70dfa09d8ff24afc386593608e4f927fd2aff2;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 6cb7f29..f52cfb3 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -290,19 +290,20 @@ function csplitter($in, $sep) $out = array(); $out[$id] = ""; for ($i = 0 ; $i < strlen($in) ; $i++) { + $ini = substr($in, $i, 1); if ($st == 0) { - if ($in{$i} == '\\') + if ($ini == '\\') $st = 1; - else if ($in{$i} == $sep) { + else if ($ini == $sep) { $id++; $out[$id] = ""; } else { - $out[$id] .= $in{$i}; + $out[$id] .= $ini; } } else if ($st == 1) { - $out[$id] .= $in{$i}; + $out[$id] .= $ini; $st = 0; } } @@ -310,7 +311,6 @@ function csplitter($in, $sep) return ($out); } - function xcape($s) { $from = array ( '\\', '@', '|' );