[Comoblog-commit] comoblog/_install step_5.php,1.1.1.1,1.2
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-10-07 13:21:32
|
Update of /cvsroot/comoblog/comoblog/_install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16149/_install Modified Files: step_5.php Log Message: RFE: 1280287 - HTML allowed in footer and intro textareas Index: step_5.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/step_5.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- step_5.php 16 Aug 2005 05:49:44 -0000 1.1.1.1 +++ step_5.php 7 Oct 2005 13:21:21 -0000 1.2 @@ -16,14 +16,11 @@ if (strtoupper($_SERVER['REQUEST_METHOD']) == 'POST') { - // check form - foreach ($_POST as $k => $v) { - if (get_magic_quotes_gpc() == 0) - $_POST[$k] = addslashes(htmlentities(trim($v))); - else - $_POST[$k] = htmlentities(trim($v)); - } - + if (get_magic_quotes_gpc() == 0) + $_POST['title'] = addslashes(htmlentities(trim($_POST['title']))); + else + $_POST['title'] = htmlentities(trim($_POST['title'])); + $errors = array(); if (count($errors) == 0) { |