Missing html escaping in addresses (Closes #1135)
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 23 Jun 2010 15:28:54 +0000 (17:28 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 23 Jun 2010 15:28:54 +0000 (17:28 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
plugins/function.display_address.php

index 32cf19c..55c1f16 100644 (file)
@@ -85,7 +85,7 @@ function smarty_function_display_address($param, &$smarty)
     }
     foreach ($lines as $line)
     {
-        $txthtml .= "<strong>".$line."</strong><br/>\n";
+        $txthtml .= "<strong>" . pl_entities($line) . "</strong><br/>\n";
     }
     if($adr->phones() != null) {
         require_once('function.display_phones.php');