- get rid of function sanitizeString()

This commit is contained in:
steinm 2011-12-01 14:11:07 +00:00
parent c89d082e75
commit 9fdcd9ab1f
3 changed files with 231 additions and 231 deletions

View File

@ -23,8 +23,8 @@ include("../inc/inc.DBInit.php");
include("../inc/inc.Language.php"); include("../inc/inc.Language.php");
include("../inc/inc.Authentication.php"); include("../inc/inc.Authentication.php");
$form = sanitizeString($_GET["form"]); $form = preg_replace('/[^A-Za-z0-9_]+/', '', $_GET["form"]);
$selcats = sanitizeString($_GET["cats"]); $selcats = preg_replace('/[^0-9,]+/', '', $_GET["cats"]);
UI::htmlStartPage(getMLText("choose_target_category")); UI::htmlStartPage(getMLText("choose_target_category"));
UI::globalBanner(); UI::globalBanner();

View File

@ -25,7 +25,7 @@ include("../inc/inc.Language.php");
include("../inc/inc.Authentication.php"); include("../inc/inc.Authentication.php");
$folderid = intval($_GET["folderid"]); $folderid = intval($_GET["folderid"]);
$form = sanitizeString($_GET["form"]); $form = preg_replace('/[^A-Za-z0-9_]+/', '', $_GET["form"]);
function getImgPath($img) { function getImgPath($img) {
global $theme; global $theme;

View File

@ -23,7 +23,7 @@ include("../inc/inc.DBInit.php");
include("../inc/inc.Language.php"); include("../inc/inc.Language.php");
include("../inc/inc.Authentication.php"); include("../inc/inc.Authentication.php");
$form = sanitizeString($_GET["form"]); $form = preg_replace('/[^A-Za-z0-9_]+/', '', $_GET["form"]);
$mode = intval($_GET["mode"]); $mode = intval($_GET["mode"]);
$exclude = intval($_GET["exclude"]); $exclude = intval($_GET["exclude"]);