mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
revert last commit for now
This commit is contained in:
parent
6eaa47854e
commit
31bd24860c
@ -2331,14 +2331,9 @@ PHPAPI void php_stripslashes(char *str, int *len TSRMLS_DC)
|
||||
l--;
|
||||
}
|
||||
*s++ = *t++;
|
||||
} else if (*t == '\\' && l > 0) {
|
||||
if(t[1] == '0') {
|
||||
*s++='\0';
|
||||
t++;
|
||||
} else {
|
||||
*s++=*(++t);
|
||||
}
|
||||
t++;
|
||||
} else if (*t == '\\' && t[1] == '0' && l > 0) {
|
||||
*s++='\0';
|
||||
t+=2;
|
||||
if (len != NULL) {
|
||||
(*len)--;
|
||||
}
|
||||
@ -2633,10 +2628,6 @@ PHPAPI char *php_addslashes(char *str, int length, int *new_length, int should_f
|
||||
*target++ = '\'';
|
||||
*target++ = '\'';
|
||||
break;
|
||||
case '\\':
|
||||
*target++ = '\\';
|
||||
*target++ = '\\';
|
||||
break;
|
||||
default:
|
||||
*target++ = *source;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user