mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/11044] Added comment explaining filename splitting
PHPBB3-11044
This commit is contained in:
@@ -142,7 +142,10 @@ class compress
|
|||||||
$ext = '';
|
$ext = '';
|
||||||
$this->filelist[$name]++;
|
$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);
|
$start = substr($name, 0, $pos);
|
||||||
$ext = substr($name, $pos);
|
$ext = substr($name, $pos);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user