RETURN_FALSE;
}
- _php3_strip_tags(buf, len, fgetss_state, allow->value.str.val);
+ /* strlen() can be used here since we are doing it on the return of an fgets() anyway */
+ _php3_strip_tags(buf, strlen(buf), fgetss_state, allow?allow->value.str.val:NULL);
RETURN_STRING(buf, 0);
}
/* }}} */
}
convert_to_string(str);
buf = estrdup(str->value.str.val);
- _php3_strip_tags(buf, str->value.str.len, 0, allow->value.str.val);
+ _php3_strip_tags(buf, str->value.str.len, 0, allow?allow->value.str.val:NULL);
RETURN_STRING(buf, 0);
}
/* }}} */
RETURN_FALSE;
}
- _php3_strip_tags(buf, len, ZLIBG(gzgetss_state), allow->value.str.val);
+ /* strlen() can be used here since we are doing it on the return of an fgets() anyway */
+ _php3_strip_tags(buf, strlen, ZLIBG(gzgetss_state), allow?allow->value.str.val:NULL);
RETURN_STRING(buf, 0);
}