1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 10:12:18 +01:00
This commit is contained in:
Rasmus Lerdorf
2007-05-24 20:56:20 +00:00
parent e76d86d562
commit 5f5563da38

View File

@@ -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++ = '\\';