1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 20:21:51 +02:00

Fixes #3486 - Fixes issue with files containing spaces.

This commit is contained in:
Cameron 2018-10-02 13:07:26 -07:00
parent bf49853f67
commit 5cc1b18f80
2 changed files with 2 additions and 2 deletions

View File

@ -5122,7 +5122,7 @@ return;
if($type === 'file')
{
return preg_replace('/[^\w\d_\.-]/',"",$text);
return preg_replace('/[^\w\d_\.-]/',"-",$text);
}

View File

@ -1289,7 +1289,7 @@ class e_media
}
if(!$newpath = $this->checkDupe($oldpath,$typePath.'/'.$file))
if(!$newpath = $this->checkDupe($oldpath,$typePath.'/'. $tp->filter($file,'file')))
{
return $tp->createConstants($typePath.'/'.$file,'rel');
}