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:
parent
bf49853f67
commit
5cc1b18f80
@ -5122,7 +5122,7 @@ return;
|
||||
|
||||
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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user