Преглед изворни кода

#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 година
родитељ
комит
7aa7552c8c
1 измењених фајлова са 1 додато и 1 уклоњено
  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");