mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
New parser filter added for file names.
This commit is contained in:
parent
78e2d8f50a
commit
c4d71631d8
@ -4369,6 +4369,11 @@ return;
|
||||
return preg_replace('/[^\w\d ]/',"",$text);
|
||||
}
|
||||
|
||||
if($type == 'file')
|
||||
{
|
||||
return preg_replace('/[^\w\d_\.-]/',"",$text);
|
||||
}
|
||||
|
||||
|
||||
if($validate == false)
|
||||
{
|
||||
|
@ -83,7 +83,7 @@ class themeHandler
|
||||
|
||||
if(!empty($_POST['curTheme']))
|
||||
{
|
||||
$this->curTheme = e107::getParser()->filter($_POST['curTheme']);
|
||||
$this->curTheme = e107::getParser()->filter($_POST['curTheme'],'file');
|
||||
}
|
||||
|
||||
if(!empty($_POST['setUploadTheme']) && !empty($unzippedTheme))
|
||||
|
@ -47,7 +47,7 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
$limit_start = $_POST['limit_start'];
|
||||
$limit_start = intval($_POST['limit_start']);
|
||||
}
|
||||
$nl_count = $sql->count('newsletter', '(*)', "WHERE newsletter_parent='".$action_parent_id."' AND newsletter_flag='1'");
|
||||
if ($nl_count > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user