X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2FText%2FWiki%2FRender%2FXhtml%2FPhplookup.php;fp=include%2FText%2FWiki%2FRender%2FXhtml%2FPhplookup.php;h=0be4c15af27727a58c65eaf939374dd8184dad40;hb=60181dfb652fcd5856ed544bde3634fd67eb58dc;hp=91b25983e4391a2b25c5b2e9d695a758f72b16cd;hpb=ce9996b59ad103aca41d9ad6f3ee8edb45999557;p=diogenes.git diff --git a/include/Text/Wiki/Render/Xhtml/Phplookup.php b/include/Text/Wiki/Render/Xhtml/Phplookup.php index 91b2598..0be4c15 100644 --- a/include/Text/Wiki/Render/Xhtml/Phplookup.php +++ b/include/Text/Wiki/Render/Xhtml/Phplookup.php @@ -36,7 +36,7 @@ class Text_Wiki_Render_Xhtml_Phplookup extends Text_Wiki_Render { if ($target) { // use a "popup" window. this is XHTML compliant, suggested by // Aaron Kalin. uses the $target as the new window name. - $target = htmlspecialchars($target); + $target = htmlspecialchars($target, ENT_COMPAT | ENT_HTML401, "ISO-8859-1"); $output .= " onclick=\"window.open(this.href, '$target');"; $output .= " return false;\""; } @@ -48,12 +48,12 @@ class Text_Wiki_Render_Xhtml_Phplookup extends Text_Wiki_Render { $q = $text; } - $q = htmlspecialchars($q); - $text = htmlspecialchars($text); + $q = htmlspecialchars($q, ENT_COMPAT | ENT_HTML401, "ISO-8859-1"); + $text = htmlspecialchars($text, ENT_COMPAT | ENT_HTML401, "ISO-8859-1"); // finish and return $output .= " href=\"http://php.net/$q\">$text"; return $output; } } -?> \ No newline at end of file +?>