From: Rasmus Lerdorf Date: Thu, 16 May 2002 14:53:12 +0000 (+0000) Subject: MFH just in case X-Git-Tag: php-4.2.3RC1~132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32511e9c55bd34629b1c9a5146491059b31a718b;p=php MFH just in case --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 94c5512a59..d33e77bf33 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2129,7 +2129,7 @@ PHPAPI void php_stripslashes(char *str, int *len TSRMLS_DC) t = str; if (PG(magic_quotes_sybase)) { - while (l >= 0) { + while (l > 0) { if(*t=='\'') { if((l>0) && (t[1]=='\'')) { t++;