From 08cc7f673c377bf88897743e340097e93f1e95f4 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Wed, 16 Jan 2013 09:30:05 -0500 Subject: [PATCH] - Changed regex for redirect path (Web sites, subdomains, vhost subdomains, alias domains) and web folder (vhost subdomains) so that ".." is not allowed (in order to prevent path traversals). - nginx: don't allow folders for proxy redirects (subdomains and alias domains); URL is required. - nginx: modified rewriting. --- interface/web/tools/user_settings.php | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/interface/web/tools/user_settings.php b/interface/web/tools/user_settings.php index d663814..70bbc69 100644 --- a/interface/web/tools/user_settings.php +++ b/interface/web/tools/user_settings.php @@ -81,7 +81,9 @@ function onBeforeUpdate() { global $app, $conf; - if($_POST['passwort'] != $_POST['passwort2']) { + if($conf['demo_mode'] == true && $this->id <= 3) $app->tform->errorMessage .= 'This function is disabled in demo mode.'; + + if($_POST['passwort'] != $_POST['repeat_password']) { $app->tform->errorMessage = $app->tform->lng('password_mismatch'); } $_SESSION['s']['user']['language'] = $_POST['language']; -- Gitblit v1.9.1