]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/__96__wiki__95__file__95__chars__96___setting_not_propagated_to_CGI_wrapper.mdwn
Need more info.
[ikiwiki.git] / doc / bugs / __96__wiki__95__file__95__chars__96___setting_not_propagated_to_CGI_wrapper.mdwn
1 I've set `wiki_file_chars` to a non-standard value in the setup file:
2
3     wiki_file_chars => "-[:alnum:]+/.:_\x{1f310}\x{1f430}",
4
5 (In case you're wondering, [this is the page](http://xn--9dbdkw.se/🌐/).)
6
7 ikiwiki recognises my pages when I run it from the command line, but
8 when I edit something through the CGI "script", ikiwiki would suddenly
9 not recognise them.
10
11 By running `strings` on the CGI wrapper I found that the option
12 `wiki_file_regexp` was still at its original setting.  So as a workaround,
13 I added this to the setup file and everything worked:
14
15     wiki_file_regexp => qr/(^[-[:alnum:]+\/.:_\x{1f310}\x{1f430}]+$)/,
16
17 Maybe the CGI wrapper should specially call `checkconfig`, which is
18 the function responsible for updating `wiki_file_regexp`?
19
20 --[[legoscia]]
21
22 > You have to regrenerate the cgi wrapper after changing your setup file
23 > for the configuration changes to take effect.
24
25 > I tested it, setting `wiki_file_chars => "moocow"`,
26 > running ikiwiki -refresh -wrappers my.setup, and looking at strings:
27 > `'wiki_file_regexp' => qr/(?-xism:(^[moocow]+$))/`
28 > So, this appears to have been user error. [[done]] --[[Joey]]