From 32511e9c55bd34629b1c9a5146491059b31a718b Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Thu, 16 May 2002 14:53:12 +0000 Subject: [PATCH] MFH just in case --- ext/standard/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.50.1