diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-08-10 12:22:22 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-08-10 12:22:22 +0200 |
commit | 1f6b9628e78f7a82eb2a3a455ef4a0448999dd68 (patch) | |
tree | 2c3c4a6cd668ac80d60a03690e16aa6c4d292589 /phpBB/includes/functions_download.php | |
parent | df9f35cce6a31e652fd2a4c403a86759319a2d24 (diff) | |
parent | 74c3579693bac0c09bfd3bd9eded18cf57107c33 (diff) | |
download | forums-1f6b9628e78f7a82eb2a3a455ef4a0448999dd68.tar forums-1f6b9628e78f7a82eb2a3a455ef4a0448999dd68.tar.gz forums-1f6b9628e78f7a82eb2a3a455ef4a0448999dd68.tar.bz2 forums-1f6b9628e78f7a82eb2a3a455ef4a0448999dd68.tar.xz forums-1f6b9628e78f7a82eb2a3a455ef4a0448999dd68.zip |
Merge pull request #2852 from bantu/ticket/12938
[ticket/12938] Remove the 'Download all attachments' feature.
* bantu/ticket/12938:
[ticket/12938] Remove functional tests for 'Download all attachments'.
[ticket/12938] Remove the 'Download all attachments' feature.
Diffstat (limited to 'phpBB/includes/functions_download.php')
-rw-r--r-- | phpBB/includes/functions_download.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php index 7a7efd5b34..4ff3994f4c 100644 --- a/phpBB/includes/functions_download.php +++ b/phpBB/includes/functions_download.php @@ -718,27 +718,6 @@ function phpbb_download_check_pm_auth($db, $user_id, $msg_id) } /** -* Cleans a filename of any characters that could potentially cause a problem on -* a user's filesystem. -* -* @param string $filename The filename to clean -* -* @return string The cleaned filename -*/ -function phpbb_download_clean_filename($filename) -{ - $bad_chars = array("'", "\\", ' ', '/', ':', '*', '?', '"', '<', '>', '|'); - - // rawurlencode to convert any potentially 'bad' characters that we missed - $filename = rawurlencode(str_replace($bad_chars, '_', $filename)); - - // Turn the %xx entities created by rawurlencode to _ - $filename = preg_replace("/%(\w{2})/", '_', $filename); - - return $filename; -} - -/** * Check if the browser is internet explorer version 7+ * * @param string $user_agent User agent HTTP header |