diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-05-29 07:54:29 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-05-29 07:54:29 +0000 |
commit | 7c01660ece288e7485f90818e647fcbff6308fcf (patch) | |
tree | e2854adccf634f3b127fb966a44998425e755e1b /perl-install/ugtk2.pm | |
parent | 3c89244cf9477a7f5c2f42f9639045353fced62e (diff) | |
download | drakx-7c01660ece288e7485f90818e647fcbff6308fcf.tar drakx-7c01660ece288e7485f90818e647fcbff6308fcf.tar.gz drakx-7c01660ece288e7485f90818e647fcbff6308fcf.tar.bz2 drakx-7c01660ece288e7485f90818e647fcbff6308fcf.tar.xz drakx-7c01660ece288e7485f90818e647fcbff6308fcf.zip |
(escape_text_for_TextView_markup_format) pinpoint bogus callers
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r-- | perl-install/ugtk2.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 5577384f3..3072aadaf 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -290,7 +290,10 @@ sub escape_text_for_TextView_markup_format { '<' => '<', '>' => '>', ); - $str =~ s!([&<>])!$rules{$1}!g; #^(&(amp|lt|gt);)!!) { + eval { $str =~ s!([&<>])!$rules{$1}!g }; #^(&(amp|lt|gt);)!!) { + if (my $err = $@) { + internal_error("$err\n$str"); + } $str; } |