X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmime.php;h=8cf0f23d6fc9dc36af6a3c05f7cc8b1633a90e22;hb=aab65dbd3d71ac2683b3959c238284c4444dea41;hp=4802dd1f18348f07d98305c5384408c4a7682262;hpb=babad50305f1b991f32209a7f2e3b72a5eefe5c7;p=squirrelmail.git diff --git a/functions/mime.php b/functions/mime.php index 4802dd1f..8cf0f23d 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -1397,9 +1397,8 @@ function sq_casenormalize(&$val){ function sq_skipspace($body, $offset){ $me = 'sq_skipspace'; preg_match('/^(\s*)/s', substr($body, $offset), $matches); - if (sizeof($matches{1})){ - $count = strlen($matches{1}); - $offset += $count; + if (!empty($matches[1])){ + $offset += strlen($matches[1]); } return $offset; }