mirror of
https://github.com/php/php-src.git
synced 2026-03-28 10:12:18 +01:00
MFB 5_2
This commit is contained in:
@@ -4734,7 +4734,7 @@ PHPAPI char *php_addcslashes(char *str, int length, int *new_length, int should_
|
||||
|
||||
php_charmask((unsigned char*)what, wlength, flags TSRMLS_CC);
|
||||
|
||||
for (source = str, end = source + length, target = new_str; (c = *source) || (source < end); source++) {
|
||||
for (source = str, end = source + length, target = new_str; source < end; source++) {
|
||||
if (flags[(unsigned char)c]) {
|
||||
if ((unsigned char) c < 32 || (unsigned char) c > 126) {
|
||||
*target++ = '\\';
|
||||
|
||||
Reference in New Issue
Block a user