fmt_info.pl: bashslash non-alphanumeric characters in origin full name.

  Make sure non-alphanumeric characters are backslashed
  when playing with original full filename. Thanks
  Michael Klein for report and fix (Closes: #554845).
parent fdb9f244
linuxdoc-tools (0.9.66) unstable; urgency=low
* debian/control:
- Bump debhelper dependency to 7.
* lib/fmt/fmt_info.pl
- Make sure non-alphanumeric characters are backslashed
when playing with original full filename. Thanks
Michael Klein for report and fix (Closes: #554845).
-- Agustin Martin Domingo <agmartin@debian.org> Sat, 07 Nov 2009 20:29:00 +0100
linuxdoc-tools (0.9.65) unstable; urgency=low
* lib/fmt/fmt_txt.pl:
......
......@@ -141,8 +141,8 @@ $info->{postASP} = sub {
}
close $TMPINFO;
# Change to something useful origin filename given by makeinfo
$infotext =~ s/$texifile/$fileinfo/;
# Change origin filename given by makeinfo to something useful
$infotext =~ s/\Q$texifile\E/$fileinfo/;
# Remove not needed line in resulting info file. Only first match.
$infotext =~ s/\\input texinfo//;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment