diff --git a/admin/index.php b/admin/index.php index 23d8ffa..baf5266 100644 --- a/admin/index.php +++ b/admin/index.php @@ -70,7 +70,7 @@ if ($user->isAdmin()) { $textile = new Textile(); - $_POST["title"] = $textile->TextileThis(removeBadTags($_POST["title"])); + $_POST["title"] = $textile->TextileThis(removeBadTags($_POST["title"],true)); $_POST["description"] = $textile->TextileThis(removeBadTags($_POST["description"])); if (isset($_POST["id_post"])) { diff --git a/classes/functions.php b/classes/functions.php index 565b9d5..44e3fe4 100644 --- a/classes/functions.php +++ b/classes/functions.php @@ -395,8 +395,12 @@ if(!defined('entry') || !entry) die('Not a valid page'); return $dirs; } - function removeBadTags($source) { - $validTags ='