Explorar o código

Someone meant to use strlen() instead of sizeof() but neither is necessary

pdontthink %!s(int64=3) %!d(string=hai) anos
pai
achega
fa13f1555d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      functions/imap_general.php

+ 1 - 1
functions/imap_general.php

@@ -1335,7 +1335,7 @@ function sqimap_parse_namespace(&$input) {
                 $namespace[$ns_strings[$i]] = array();
             } else {
                 // Pop-out the first ( and last ) for easier parsing
-                $ns = substr($regs[$i], 1, sizeof($regs[$i])-2);
+                $ns = substr($regs[$i], 1, -1);
                 if($c = preg_match_all('/\((?:(.*?)\s*?)\)/', $ns, $regs2)) {
                     $namespace[$ns_strings[$i]] = array();
                     for($j=0; $j<sizeof($regs2[1]); $j++) {