mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/11044] Added comment explaining filename splitting
PHPBB3-11044
This commit is contained in:
parent
011b494bc5
commit
ecb310c6f7
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue