mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[feature/attach-dl] Removed strtolower and added comments
PHPBB3-11042
This commit is contained in:
parent
6dd0bd0bce
commit
dd7be79fc3
@ -376,7 +376,11 @@ else
|
||||
|
||||
$bad_chars = array("'", "\\", ' ', '/', ':', '*', '?', '"', '<', '>', '|');
|
||||
$clean_name = current($row);
|
||||
$clean_name = rawurlencode(str_replace($bad_chars, '_', strtolower($clean_name)));
|
||||
|
||||
// rawurlencode to convert any potentially 'bad' characters that we missed
|
||||
$clean_name = rawurlencode(str_replace($bad_chars, '_', $clean_name));
|
||||
|
||||
// Turn the %xx entities created by rawurlencode to _
|
||||
$clean_name = preg_replace("/%(\w{2})/", '_', $clean_name);
|
||||
$suffix = '_' . (($post_id) ? $post_id : $topic_id) . '_' . $clean_name;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user