summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-14 11:27:45 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-14 11:27:45 +0000
commitfdbbc3ce4d1e8661f235a812f7f5277194068649 (patch)
tree0850ef31e361d9c4693244adf5ef8402f50da48a
parent80dcdb3093bd16f4061e85505a480b4f6b572936 (diff)
downloadcontrol-center-fdbbc3ce4d1e8661f235a812f7f5277194068649.tar
control-center-fdbbc3ce4d1e8661f235a812f7f5277194068649.tar.gz
control-center-fdbbc3ce4d1e8661f235a812f7f5277194068649.tar.bz2
control-center-fdbbc3ce4d1e8661f235a812f7f5277194068649.tar.xz
control-center-fdbbc3ce4d1e8661f235a812f7f5277194068649.zip
escape "&", "<", ">" in descriptions so that Gtk2::Html2 doesn't havoc on them
-rwxr-xr-xcontrol-center4
1 files changed, 3 insertions, 1 deletions
diff --git a/control-center b/control-center
index 73ce7fe7..b97621f9 100755
--- a/control-center
+++ b/control-center
@@ -1470,7 +1470,9 @@ foreach (@tree) {
my $real_icon = $icon ? '<IMG SRC="' . ugtk2::_find_imgfile($icon) . '">' : '';
my @widgets = (
qq(<TD><A HREF="$label">$real_icon</A></TD>),
- qq(<TD style="text-align: $align"><A HREF="$label"><DIV>$programs{$label}{description}</DIV></A></TD>)
+ qq(<TD style="text-align: $align"><A HREF="$label"><DIV>)
+ . escape_text_for_TextView_markup_format($programs{$label}{description})
+ . qq(</DIV></A></TD>)
);
@widgets = reverse @widgets if lang::text_direction_rtl();
qq(<TD WIDTH="49%">