From: Andrei Zmievski Date: Fri, 9 Jun 2000 13:58:10 +0000 (+0000) Subject: @- Fixed stripcslashes() to remove to strip \ in unknown escapes instead of X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef1d6987fde2d1793f606345b6b1f5633d523583;p=php @- Fixed stripcslashes() to remove to strip \ in unknown escapes instead of @ leaving it. (Andrei) --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 9b49744065..03bbc2900f 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1596,8 +1596,8 @@ PHPAPI void php_stripcslashes(char *str, int *len) nlen-=i; source--; } else { - *target++='\\'; *target++=*source; + nlen--; } } } else {