mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Fixes #3486 - Fixes issue with files containing spaces.
This commit is contained in:
@@ -5122,7 +5122,7 @@ return;
|
|||||||
|
|
||||||
if($type === 'file')
|
if($type === 'file')
|
||||||
{
|
{
|
||||||
return preg_replace('/[^\w\d_\.-]/',"",$text);
|
return preg_replace('/[^\w\d_\.-]/',"-",$text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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');
|
return $tp->createConstants($typePath.'/'.$file,'rel');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user