Turning the wikilink regexp into an extended regexp on the svn trunk seems to have broken the setuid wrapper on my system, because of two reasons: First, the wrapper generator should turn each newline in $configstring into `\n` in the C code rather than `\` followed by a newline in the C code. Second, the untainting of $configstring should allow newlines. > Both of these problems were already dealt with in commit r3714, on June > 3rd. Confused why you're posting patches for them now. [[done]] --[[Joey]] Modified: wiki-meta/perl/IkiWiki.pm ============================================================================== --- wiki-meta/perl/IkiWiki.pm (original) +++ wiki-meta/perl/IkiWiki.pm Mon Jun 11 10:52:07 2007 @@ -205,7 +205,7 @@ sub possibly_foolish_untaint ($) { #{{{ my $tainted=shift; - my ($untainted)=$tainted=~/(.*)/; + my ($untainted)=$tainted=~/(.*)/s; return $untainted; } #}}} Modified: wiki-meta/perl/IkiWiki/Wrapper.pm ============================================================================== --- wiki-meta/perl/IkiWiki/Wrapper.pm (original) +++ wiki-meta/perl/IkiWiki/Wrapper.pm Mon Jun 11 10:52:07 2007 @@ -62,7 +62,7 @@ } $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. 0@xayide.jones.dk/sys?h=master'>commitdiff
path: root/tags/02/86/20170823043719.3B2D48E0@xayide.jones.dk/sys
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
committerJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch)
treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/02/86/20170823043719.3B2D48E0@xayide.jones.dk/sys
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
master
Diffstat (limited to 'tags/02/86/20170823043719.3B2D48E0@xayide.jones.dk/sys')