Bladeren bron

Gotta use JavaScriptEscape()

Signed-off-by: Suki <[email protected]>
Suki 10 jaren geleden
bovenliggende
commit
f874bf25ea
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      Sources/Profile-Modify.php

+ 1 - 1
Sources/Profile-Modify.php

@@ -184,7 +184,7 @@ function loadProfileFields($force_reload = false)
 			'js_submit' => !empty($modSettings['send_validation_onChange']) ? '
 				if (document.forms.creator.email_address.value != "'. $cur_profile['email_address'] .'")
 				{
-					alert("'. $txt['email_change_logout'] .'");
+					alert("'. JavaScriptEscape($txt['email_change_logout']) .'");
 					return true;
 				}' : '',
 			'input_validate' => create_function('&$value', '