mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
Uh, only meant to remove the null check, not the assignment
This commit is contained in:
parent
61b06f1527
commit
2fba3bf13b
@ -3017,6 +3017,7 @@ PHPAPI char *php_addcslashes(char *str, int length, int *new_length, int should_
|
||||
php_charmask(what, wlength, flags TSRMLS_CC);
|
||||
|
||||
for (source = str, end = source + length, target = new_str; source < end; source++) {
|
||||
c = *source;
|
||||
if (flags[(unsigned char)c]) {
|
||||
if ((unsigned char) c < 32 || (unsigned char) c > 126) {
|
||||
*target++ = '\\';
|
||||
|
Loading…
Reference in New Issue
Block a user