]> granicus.if.org Git - php/commitdiff
@- Fixed stripcslashes() to remove to strip \ in unknown escapes instead of
authorAndrei Zmievski <andrei@php.net>
Fri, 9 Jun 2000 13:58:10 +0000 (13:58 +0000)
committerAndrei Zmievski <andrei@php.net>
Fri, 9 Jun 2000 13:58:10 +0000 (13:58 +0000)
@  leaving it. (Andrei)

ext/standard/string.c

index 9b49744065b9b6756a60c015bcb8f9a81994166a..03bbc2900f630869adccba62657955ccb4bc2c58 100644 (file)
@@ -1596,8 +1596,8 @@ PHPAPI void php_stripcslashes(char *str, int *len)
                                                nlen-=i;
                                                source--;
                                        } else {
-                                               *target++='\\';
                                                *target++=*source;
+                                               nlen--;
                                        }
                        }
                } else {