Kaynağa Gözat

#923: prevent XSS injection in forgot password page.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3139 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 yıl önce
ebeveyn
işleme
7aa7552c8c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      application/loginwebpage.class.inc.php

+ 1 - 1
application/loginwebpage.class.inc.php

@@ -191,7 +191,7 @@ class LoginWebPage extends NiceWebPage
 		$this->add("<p>".Dict::S('UI:Login:ForgotPwdForm+')."</p>\n");
 		if ($bFailedToReset)
 		{
-			$this->add("<p class=\"hilite\">".Dict::Format('UI:Login:ResetPwdFailed', $sFailureReason)."</p>\n");
+			$this->add("<p class=\"hilite\">".Dict::Format('UI:Login:ResetPwdFailed', htmlentities($sFailureReason, ENT_QUOTES, 'UTF-8'))."</p>\n");
 		}
 		$sAuthUser = utils::ReadParam('auth_user', '', true, 'raw_data');
 		$this->add("<form method=\"post\">\n");