]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
httpauth: Recommend if_not_empty parameter for REMOTE_USER
authorSimon McVittie <smcv@debian.org>
Sun, 14 May 2017 13:45:30 +0000 (14:45 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 14 May 2017 14:36:26 +0000 (15:36 +0100)
This is untested, but should hopefully avoid the failure mode
described in [[bugs/Anon_edit_caused_lock_out_on_entire_site_]].

doc/plugins/httpauth.mdwn

index 58a08599c7a2d010c945a600b921107bf78e7f32..b2f789b8e6ad27f30e288cf0c38e22396c9ca63f 100644 (file)
@@ -41,6 +41,6 @@ users authentication via other methods.
 You have to pass the $remote_user variable to the CGI:
 
     location /ikiwiki.cgi {
-        fastcgi_param REMOTE_USER $remote_user;
+        fastcgi_param REMOTE_USER $remote_user if_not_empty;
         ....
     }