]> dev.renevier.net Git - syj.git/blobdiff - application/forms/Pending/ValidateCreation.php
provide charset argument when calling htmlspecialchars
[syj.git] / application / forms / Pending / ValidateCreation.php
index f8a20f5ff632407e0ed19972415b76b82b1b082b..50284718a2fa58c0bf781720c50defab75c6b34f 100644 (file)
@@ -9,8 +9,8 @@ class Syj_Form_Pending_ValidateCreation extends Syj_Form_Pending
 
         $translator = $this->getTranslator();
         $activatetext = $translator->translate("Someone, probably you, has registered an account %s with email address %s on syj. To confirm this account creation, validate with following button.");
-        $pseudo = '<strong>' . htmlspecialchars('"' . $user->pseudo . '"') . '</strong>';
-        $email = '<strong>' . htmlspecialchars('"' . $user->email . '"') . '</strong>';
+        $pseudo = '<strong>' . htmlspecialchars('"' . $user->pseudo . '"', ENT_COMPAT, "UTF-8") . '</strong>';
+        $email = '<strong>' . htmlspecialchars('"' . $user->email . '"', ENT_COMPAT, "UTF-8") . '</strong>';
         $activatetext = vsprintf ($activatetext, array($pseudo, $email));
 
         return array(