Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
authorJoey Hess <joey@kitenet.net>
Tue, 7 Sep 2010 20:00:59 +0000 (16:00 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 7 Sep 2010 20:00:59 +0000 (16:00 -0400)
debian/changelog
doc/bugs/ikiwiki_ignores_PATH_environment.mdwn
doc/forum/Forward_slashes_being_escaped_as_252F.mdwn
ikiwiki.in

index 430bd302c69800f476e390d26d2b4da15b3faee3..a9892938a07c4744f569f2b07fbe2fd7b39b0697 100644 (file)
@@ -3,6 +3,8 @@ ikiwiki (3.20100832) UNRELEASED; urgency=low
   * needsbuild hook interface changed; the hooks should now return
     the modified array of things that need built. (Backwards compatability
     code keeps plugins using the old interface working.)
+  * Remove PATH overriding code in ikiwiki script that was present to make
+    perl taint checking happy, but taint checking is disabled.
 
  -- Joey Hess <joeyh@debian.org>  Tue, 07 Sep 2010 12:08:05 -0400
 
index 63ac4bc31e0df74229d50173c6693315e48d299c..5097acaef5c2de5fe74208ee8436f59f2a282351 100644 (file)
@@ -7,3 +7,12 @@ This makes it a little hard to specify which specific binaries should be used, e
     $ENV{PATH}="$ENV{PATH}:/usr/local/bin:/usr/bin:/bin:/opt/local/bin";
 
 ? The alternative is of course to patch ikiwiki as suggested in the bug, but I wanted to ask here first :)
+
+> You can use the ENV setting in your setup file to set any environment
+> variables you like. Since ikiwiki.cgi is run by the web browser, that
+> is the best way to ensure ikiwiki always runs with a given variable set.
+> 
+> As a suid program, the ikiwiki wrappers have to sanitize the environment.
+> The ikiwiki script's own sanitization of PATH was done to make perl taint
+> checking happy, but as taint checking is disabled anyway, I have removed
+> that. [[done]] --[[Joey]] 
index b9c5aca07cc95aceb1a7e5a08883a5c83dd64e6b..cabb21b5c9946b792fff5ce8489f39d1b78a9d82 100644 (file)
@@ -7,3 +7,16 @@ I am sent to a page with the URL
 `http://ciffer.net/~svend/ikiwiki.cgi?page=tech%252Fhosts&do=edit`.
 
 I am running ikiwiki 3.20100504~bpo50+1 on Debian Lenny.
+
+
+> But on your page, the Edit link is escaped normally and correctly (using %2F).
+> Look at the page source!
+> 
+> The problem is that your web server is forcing a hard (302) redirect
+> to the doubly-escaped url. In wireshark I see your web server send back:
+
+       HTTP/1.1 302 Found\r\n
+       Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch
+       Location: http://ciffer.net/~svend/ikiwiki.cgi?page=tech%252Fhosts&do=edit
+
+> You'll need to investigate why your web server is doing that... --[[Joey]]
index bcda2469b515c33a8df91536da895f28841574b3..339efd37c3ab8655746bff66c4610924936a4c87 100755 (executable)
@@ -1,7 +1,4 @@
 #!/usr/bin/perl
-$ENV{PATH}="/usr/local/bin:/usr/bin:/bin";
-delete @ENV{qw{IFS CDPATH ENV BASH_ENV}};
-
 package IkiWiki;
 
 use warnings;