diff options
author | Fyorl <gaelreth@gmail.com> | 2012-08-06 08:32:12 +0800 |
---|---|---|
committer | Fyorl <gaelreth@gmail.com> | 2012-08-06 08:32:12 +0800 |
commit | ecb310c6f7a2f8aa5c1f2217d7de6cb878aa85f4 (patch) | |
tree | 5fff74dc7d66959ed14d21f175f8c92052c125ea /phpBB/includes | |
parent | 011b494bc55224e59872621ea09c0f69baed2744 (diff) | |
download | forums-ecb310c6f7a2f8aa5c1f2217d7de6cb878aa85f4.tar forums-ecb310c6f7a2f8aa5c1f2217d7de6cb878aa85f4.tar.gz forums-ecb310c6f7a2f8aa5c1f2217d7de6cb878aa85f4.tar.bz2 forums-ecb310c6f7a2f8aa5c1f2217d7de6cb878aa85f4.tar.xz forums-ecb310c6f7a2f8aa5c1f2217d7de6cb878aa85f4.zip |
[ticket/11044] Added comment explaining filename splitting
PHPBB3-11044
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions_compress.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/functions_compress.php b/phpBB/includes/functions_compress.php index 80c0242517..8e07e6d1b8 100644 --- a/phpBB/includes/functions_compress.php +++ b/phpBB/includes/functions_compress.php @@ -142,7 +142,10 @@ class compress $ext = ''; $this->filelist[$name]++; - if (($pos = strrpos($name, '.')) !== false) { + // Separate the extension off the end of the filename to preserve it + $pos = strrpos($name, '.'); + if ($pos !== false) + { $start = substr($name, 0, $pos); $ext = substr($name, $pos); } |