]> granicus.if.org Git - php/commit
Fixed #46313 (Magic quotes broke $_FILES)
authorArnaud Le Blanc <lbarnaud@php.net>
Mon, 20 Oct 2008 17:09:10 +0000 (17:09 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Mon, 20 Oct 2008 17:09:10 +0000 (17:09 +0000)
commitc98e28795fc75abfcc1644217e2d5ef3b8b55e3e
tree88c5dc472b0bd20777cfbdb758b9850c7bf34147
parent16bda080801fcf880e9b0449c3647fc287d19fa2
Fixed #46313 (Magic quotes broke $_FILES)
# magic_quotes_gpc was disabled during registration of $_FILES["x"]["tmp_name"]
# and $GLOBALS["x"] (which is tmp_name with register_globals enabled). This
# caused "x" to not be escaped so there was 2 different keys for the same file
# in $_FILES, one with tmp_name and the other without.
# All other variables (name, size, etc) are registered with magic_quotes_gpc
# untouched, both in $_FILES and $GLOBALS and I did not found a reason for
# disabling it for tmp_name.
main/rfc1867.c
tests/basic/bug46313-win.phpt [new file with mode: 0644]
tests/basic/bug46313.phpt [new file with mode: 0644]