X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2FText%2FWiki%2FRender%2FXhtml%2FImage.php;h=fed5a7f8c377c41fed5615ec897e5fa174450473;hb=HEAD;hp=4318c84fe292e2723637097f1733b3fe13ef8e81;hpb=6855525e48fad5de270500a5445c4f4ff85d8bda;p=diogenes.git
diff --git a/include/Text/Wiki/Render/Xhtml/Image.php b/include/Text/Wiki/Render/Xhtml/Image.php
index 4318c84..fed5a7f 100644
--- a/include/Text/Wiki/Render/Xhtml/Image.php
+++ b/include/Text/Wiki/Render/Xhtml/Image.php
@@ -108,7 +108,7 @@ class Text_Wiki_Render_Xhtml_Image extends Text_Wiki_Render {
}
// start the HTML output
- $output = '
formatConf(' class="%s"', 'css');
@@ -128,14 +128,14 @@ class Text_Wiki_Render_Xhtml_Image extends Text_Wiki_Render {
$css = null;
}
- $key = htmlspecialchars($key);
- $val = htmlspecialchars($val);
+ $key = htmlspecialchars($key, ENT_COMPAT | ENT_HTML401, "ISO-8859-1");
+ $val = htmlspecialchars($val, ENT_COMPAT | ENT_HTML401, "ISO-8859-1");
$output .= " $key=\"$val\"";
}
// always add an "alt" attribute per Stephane Solliec
if (! $alt) {
- $alt = htmlspecialchars(basename($options['src']));
+ $alt = htmlspecialchars(basename($options['src']), ENT_COMPAT | ENT_HTML401, "ISO-8859-1");
$output .= " alt=\"$alt\"";
}
@@ -145,7 +145,7 @@ class Text_Wiki_Render_Xhtml_Image extends Text_Wiki_Render {
// was the image clickable?
if ($href) {
// yes, add the href and return
- $href = htmlspecialchars($href);
+ $href = htmlspecialchars($href, ENT_COMPAT | ENT_HTML401, "ISO-8859-1");
$css = $this->formatConf(' class="%s"', 'css_link');
$output = "$output";
}
@@ -153,4 +153,4 @@ class Text_Wiki_Render_Xhtml_Image extends Text_Wiki_Render {
return $output;
}
}
-?>
\ No newline at end of file
+?>