From 80dcdc66ba0f3543d2d01d4446b6ee1d3cc9820f Mon Sep 17 00:00:00 2001 From: vbracco Date: Wed, 20 Feb 2008 19:08:40 +0000 Subject: [PATCH] Removing deprecated tags for xhtml and removing invalid tags from Title post. --- admin/index.php | 2 +- classes/functions.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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 ='