mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 02:40:25 +02:00
New parser filter added for file names.
This commit is contained in:
@@ -4369,6 +4369,11 @@ return;
|
|||||||
return preg_replace('/[^\w\d ]/',"",$text);
|
return preg_replace('/[^\w\d ]/',"",$text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($type == 'file')
|
||||||
|
{
|
||||||
|
return preg_replace('/[^\w\d_\.-]/',"",$text);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if($validate == false)
|
if($validate == false)
|
||||||
{
|
{
|
||||||
|
@@ -83,7 +83,7 @@ class themeHandler
|
|||||||
|
|
||||||
if(!empty($_POST['curTheme']))
|
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))
|
if(!empty($_POST['setUploadTheme']) && !empty($unzippedTheme))
|
||||||
|
@@ -47,7 +47,7 @@ else
|
|||||||
}
|
}
|
||||||
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'");
|
$nl_count = $sql->count('newsletter', '(*)', "WHERE newsletter_parent='".$action_parent_id."' AND newsletter_flag='1'");
|
||||||
if ($nl_count > 0)
|
if ($nl_count > 0)
|
||||||
|
Reference in New Issue
Block a user