aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-01-23 14:34:31 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-01-23 14:34:31 -0500
commitdcc70ca629cf999b43bf32d38980df6381f8f282 (patch)
treefc8e90d9a1c3c97eda8cec8605dc6b7ab395f880
parent8b2977ea7a78556ace2e14a5d30b48e455e37ad0 (diff)
downloadikiwiki-dcc70ca629cf999b43bf32d38980df6381f8f282.tar
ikiwiki-dcc70ca629cf999b43bf32d38980df6381f8f282.tar.gz
response
-rw-r--r--doc/forum/Error:_bad_page_name.mdwn22
1 files changed, 19 insertions, 3 deletions
diff --git a/doc/forum/Error:_bad_page_name.mdwn b/doc/forum/Error:_bad_page_name.mdwn
index 59974ca00..a16decedb 100644
--- a/doc/forum/Error:_bad_page_name.mdwn
+++ b/doc/forum/Error:_bad_page_name.mdwn
@@ -1,5 +1,21 @@
-I'm trying to use ikiwiki for the first time. In the start, I had problems with installing the package, because I don't have a root account on my server.
+I'm trying to use ikiwiki for the first time. In the start, I had problems
+with installing the package, because I don't have a root account on my
+server.
-When I solved this, I finally set up my wiki, but whenever I try to edit a page, I get an error: “Error: bad page name”.
+When I solved this, I finally set up my wiki, but whenever I try to edit a
+page, I get an error: “Error: bad page name”.
-What am I doing wrong? The wiki is at <http://atrey.karlin.mff.cuni.cz/~onderka/wiki/>, the setupfile I used at <http://atrey.karlin.mff.cuni.cz/~onderka/wiki/ikiwiki.setup>.
+What am I doing wrong? The wiki is at
+<http://atrey.karlin.mff.cuni.cz/~onderka/wiki/>, the setupfile I used at
+<http://atrey.karlin.mff.cuni.cz/~onderka/wiki/ikiwiki.setup>.
+
+> This means that one of the checks that ikiwiki uses to prevent
+> editing files with strange or insecure names has fired incorrectly.
+> Your setup file seems fine.
+> We can figure out what is going wrong through a series of tests:
+>
+> * Test if your perl has a problem with matching alphanumerics:
+> `perl -le 'print int "index"=~/^([-[:alnum:]+\/.:_]+)$/'`
+> * Check if something is breaking pruning of disallowed files:
+> `perl -le 'use IkiWiki; %config=IkiWiki::defaultconfig(); print ! IkiWiki::file_pruned("index")'`
+> --[[Joey]]