Skip to content

Commit

Permalink
- Fixed bug #62964 (Possible XSS on "Registered stream filters" info)…
Browse files Browse the repository at this point in the history
… patch by: david at nnucomputerwhiz dot com
  • Loading branch information
felipensp committed Jun 25, 2013
1 parent 5ae1983 commit 41b73e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/standard/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ static void php_info_print_stream_hash(const char *name, HashTable *ht TSRMLS_DC
zend_hash_internal_pointer_reset_ex(ht, &pos);
while (zend_hash_get_current_key_ex(ht, &key, &len, NULL, 0, &pos) == HASH_KEY_IS_STRING)
{
php_info_print(key);
if (!sapi_module.phpinfo_as_text) {
php_info_print_html_esc(key, len-1);
} else {
php_info_print(key);
}
zend_hash_move_forward_ex(ht, &pos);
if (zend_hash_get_current_key_ex(ht, &key, &len, NULL, 0, &pos) == HASH_KEY_IS_STRING) {
php_info_print(", ");
Expand Down

0 comments on commit 41b73e4

Please sign in to comment.