Skip to content

Commit af84ebb

Browse files
committed
Remove dead code in sanitizing_filter.c of the filter extension
1 parent 612c86d commit af84ebb

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

ext/filter/sanitizing_filters.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,7 @@ static void php_filter_encode_url(zval *value, const unsigned char* chars, const
7272
while (s < e) {
7373
tmp[*s++] = '\0';
7474
}
75-
/* XXX: This is not needed since these chars in the allowed list never include the high/low/null value
76-
if (encode_nul) {
77-
tmp[0] = 1;
78-
}
79-
if (high) {
80-
memset(tmp + 127, 1, sizeof(tmp) - 127);
81-
}
82-
if (low) {
83-
memset(tmp, 1, 32);
84-
}
85-
*/
75+
8676
str = zend_string_safe_alloc(Z_STRLEN_P(value), 3, 0, 0);
8777
p = (unsigned char *) ZSTR_VAL(str);
8878
s = (unsigned char *) Z_STRVAL_P(value);

0 commit comments

Comments
 (0)