diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-08-04 12:35:19 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-08-04 12:35:19 +0200 |
commit | dd63f57344321a47eac235005ff9975aafa3051e (patch) | |
tree | cbfc395dbf5af3d166ae6e64e8d5921d26208c04 /git-tools/hooks/pre-commit | |
parent | e1328e87ce23245dbd55a08fbaf3d48e957a6777 (diff) | |
download | forums-dd63f57344321a47eac235005ff9975aafa3051e.tar forums-dd63f57344321a47eac235005ff9975aafa3051e.tar.gz forums-dd63f57344321a47eac235005ff9975aafa3051e.tar.bz2 forums-dd63f57344321a47eac235005ff9975aafa3051e.tar.xz forums-dd63f57344321a47eac235005ff9975aafa3051e.zip |
[ticket/9615] magic_quotes_gpc: call stripslashes() before utf8_basename()
When magic_quotes_gpc is 'On' it also affects the $_FILES array and a filename
like 'bantu"s testfile.txt' will be returned as 'bantu\"s testfile.txt'.
Because utf8_basename() also strips off anything before the last backslash
the filename was returned as '"s testfile.txt'.
Calling stripslashes() before utf8_basename() solves the problem.
PHPBB3-9615
Diffstat (limited to 'git-tools/hooks/pre-commit')
0 files changed, 0 insertions, 0 deletions