diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-19 17:24:55 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-19 17:24:55 +0200 |
commit | 089ae980c40544de54a10d407fd366f61ef5ec48 (patch) | |
tree | 30c78db1f04d53c9e595a933459668248aadcb4c /index.php | |
parent | d2936bd90caa2b256d32e7d349449ed58b28107b (diff) | |
download | nextcloud-server-089ae980c40544de54a10d407fd366f61ef5ec48.tar.gz nextcloud-server-089ae980c40544de54a10d407fd366f61ef5ec48.zip |
use new sanitize HTML function
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php index 1171c0fe0cf..e3c94adf66f 100755 --- a/index.php +++ b/index.php @@ -122,7 +122,7 @@ elseif(OC_User::isLoggedIn()) { if(!array_key_exists('sectoken', $_SESSION) || (array_key_exists('sectoken', $_SESSION) && is_null(OC::$REQUESTEDFILE)) || substr(OC::$REQUESTEDFILE, -3) == 'php'){ $sectoken=rand(1000000,9999999); $_SESSION['sectoken']=$sectoken; - $redirect_url = (isset($_REQUEST['redirect_url'])) ? strip_tags($_REQUEST['redirect_url']) : $_SERVER['REQUEST_URI']; + $redirect_url = (isset($_REQUEST['redirect_url'])) ? OC_Util::sanitizeHTML($_REQUEST['redirect_url']) : $_SERVER['REQUEST_URI']; OC_Template::printGuestPage('', 'login', array('error' => $error, 'sectoken' => $sectoken, 'redirect' => $redirect_url)); } } |