From: joey Date: Sun, 3 Jun 2007 16:24:22 +0000 (+0000) Subject: * Fix wrapper generator and untaint code's handling of strings contining X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/aadb21422065dc225cfbf487c56382e2b0ae8bcd * Fix wrapper generator and untaint code's handling of strings contining newlines. --- diff --git a/IkiWiki.pm b/IkiWiki.pm index 015df1f74..fdb62f7da 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -206,7 +206,7 @@ sub log_message ($$) { #{{{ sub possibly_foolish_untaint ($) { #{{{ my $tainted=shift; - my ($untainted)=$tainted=~/(.*)/; + my ($untainted)=$tainted=~/(.*)/s; return $untainted; } #}}} diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm index 8c363cc11..9415d4a17 100644 --- a/IkiWiki/Wrapper.pm +++ b/IkiWiki/Wrapper.pm @@ -57,7 +57,7 @@ EOF my $configstring=Data::Dumper->Dump([\%config], ['*config']); $configstring=~s/\\/\\\\/g; $configstring=~s/"/\\"/g; - $configstring=~s/\n/\\\n/g; + $configstring=~s/\n/\\n/g; #translators: The first parameter is a filename, and the second is #translators: a (probably not translated) error message. diff --git a/debian/changelog b/debian/changelog index 6b2794eaf..dd7f509b3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -32,8 +32,10 @@ ikiwiki (2.2) UNRELEASED; urgency=low in a PageSpec. * Explode some of the more insane regexps. * Add test suite for preprocessor directive parsing. + * Fix wrapper generator and untaint code's handling of strings contining + newlines. - -- Joey Hess Sat, 02 Jun 2007 01:03:37 -0400 + -- Joey Hess Sun, 03 Jun 2007 12:20:26 -0400 ikiwiki (2.1) unstable; urgency=low diff --git a/po/ikiwiki.pot b/po/ikiwiki.pot index 67c5356cf..15d20ce29 100644 --- a/po/ikiwiki.pot +++ b/po/ikiwiki.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2007-06-01 19:35-0400\n" +"POT-Creation-Date: 2007-06-03 12:21-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n"