diff --git a/presentation/login.php b/presentation/login.php index f4bcc13..3d16588 100644 --- a/presentation/login.php +++ b/presentation/login.php @@ -2,6 +2,7 @@ // main library routines and defaults require_once("../config/dmsDefaults.php"); +require_once("../lib/sanitize.inc"); /** * $Id$ * @@ -69,7 +70,7 @@ if ($loginAction == "loginForm") {
Please enter your details below to login - " . urldecode($errorMessage) . " + " . sanitize($errorMessage) . " \tUsername: \t \tPassword: @@ -111,7 +112,7 @@ if ($loginAction == "loginForm") { // check for a location to forward to if (isset($redirect) && strlen(trim($redirect))>0) { - $redirect = urldecode($redirect); + $redirect = sanitize($redirect); // remove any params from redirect before looking up from sitemap if (strstr($redirect, "?")) { $queryString = substr($redirect, strpos($redirect, "?")+1, strlen($redirect)); @@ -162,4 +163,4 @@ if ($loginAction == "loginForm") { // redirect to root redirect($default->rootUrl); } -?> \ No newline at end of file +?>