wiki_file_regexp vs CGI bug

master
https://www.google.com/accounts/o8/id?id=AItOawmJXXNEI07X9crH8W7SN2wN2FIErshpZM4 2011-03-06 23:43:45 +00:00 committed by Joey Hess
parent a48ecf6f3b
commit e20d553772
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
I've set `wiki_file_chars` to a non-standard value in the setup file:
wiki_file_chars => "-[:alnum:]+/.:_\x{1f310}\x{1f430}",
(In case you're wondering, [this is the page](http://xn--9dbdkw.se/🌐/).)
ikiwiki recognises my pages when I run it from the command line, but
when I edit something through the CGI "script", ikiwiki would suddenly
not recognise them.
By running `strings` on the CGI wrapper I found that the option
`wiki_file_regexp` was still at its original setting. So as a workaround,
I added this to the setup file and everything worked:
wiki_file_regexp => qr/(^[-[:alnum:]+\/.:_\x{1f310}\x{1f430}]+$)/,
Maybe the CGI wrapper should specially call `checkconfig`, which is
the function responsible for updating `wiki_file_regexp`?