Browse Source

Preventing manipulation with $_SERVER['HTTP_HOST']

dpeca 6 years ago
parent
commit
c3c4de43d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/reset/index.php

+ 1 - 1
web/reset/index.php

@@ -30,7 +30,7 @@ if ((!empty($_POST['user'])) && (empty($_POST['code']))) {
         } else {
         } else {
             $mailtext = __('GREETINGS');
             $mailtext = __('GREETINGS');
         }
         }
-        $mailtext .= __('PASSWORD_RESET_REQUEST',$_SERVER['HTTP_HOST'],$user,$rkey,$_SERVER['HTTP_HOST'],$user,$rkey);
+        $mailtext .= __('PASSWORD_RESET_REQUEST',$hostname,$user,$rkey,$hostname,$user,$rkey);
         if (!empty($rkey)) send_email($to, $subject, $mailtext, $from);
         if (!empty($rkey)) send_email($to, $subject, $mailtext, $from);
         unset($output);
         unset($output);
     }
     }