From: indiri69 Date: Tue, 29 Jul 2003 21:29:38 +0000 (+0000) Subject: A forward slash can appear in query of a string, so find the start of a query first. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f1ca21bd08770740e345819d922a2a16d8a91780;p=squirrelmail.git A forward slash can appear in query of a string, so find the start of a query first. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5472 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/strings.php b/functions/strings.php index af51b987..5fef8c67 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -1,6 +1,6 @@ 1) { $bytes /= 1024; $type = 'M'; } - + if ($bytes < 10) { $bytes *= 10; settype($bytes, 'integer'); @@ -353,7 +355,7 @@ function show_readable_size($bytes) { } else { settype($bytes, 'integer'); } - + return $bytes . ' ' . $type . ''; } @@ -376,7 +378,7 @@ function GenerateRandomString($size, $chars, $flags = 0) { if ($flags & 0x4) { $chars .= '0123456789'; } - + if (($size < 1) || (strlen($chars) < 1)) { return ''; } @@ -409,11 +411,11 @@ function TrimArray(&$array) { } else { $$k = substr($v, 1); } - + /* Re-assign back to array. */ $array[$k] = $$k; } -} +} /* returns a link to the compose-page, taking in consideration * the compose_in_new and javascript settings. */ @@ -438,7 +440,7 @@ function makeComposeLink($url, $text = null) return makeInternalLink($url, $text, '_blank'); } -/** +/** * sm_print_r($some_variable, [$some_other_variable [, ...]]); * Debugging function - does the same as print_r, but makes sure special * characters are converted to htmlentities first. This will allow @@ -453,11 +455,10 @@ function sm_print_r() { } $buffer = ob_get_contents(); // Grab the print_r output ob_end_clean(); // Silently discard the output & stop buffering - print "
";
+    print '
';
     print htmlentities($buffer);
-    print "
"; + print '
'; } $PHP_SELF = php_self(); - ?>