Loading...
 
Skip to main content

Features / Usability


Apostrophes in page titles

Long ago I know apostrophes in page names used to work fine for me, but somewhere along the line they stopped. It wasn't from anything I consciously did. I figure that it came from either a change in server software or a TikiWiki update, and I lean toward the latter because it's only partially broken.

When I go to create/edit a page (tiki-editpage.php?page=Apostro'phe), it works fine and saves to the database. When I go to view it (tiki-index.php?page=Apostro'phe), I get a 403 Forbidden error. If I test with a file called Apostro'phe.txt in the same directory, it loads up fine. So is there something in tiki-index.php itself that's allergic to apostrophes?

I know it's among that list of special characters which "may prevent the pages from being easily accessible", but it doesn't make sense to me that it should be any more accessible while editing than simply viewing.

I'm using TikiWiki 5.0 now, but had this problem for some time on version 1.9 as well.

I'm not sure what success with an apostrophe in a page name depends on, but http://zukakakina.com/Apostro'pheQuestion works (Tiki 5.1). Be sure you have wiki page names set to "complete", on the wiki admin page (though I don't know if this is a factor here or not).

-- Gary


Hey Gary, thanks. I'm still not sure of the exact causes of the problem, but by seeing that it worked on yours and trying to figure out something we were doing different, I found a way to mostly work around the problem. You linked an URL using the short form (yoursite.ext/Apostro'phe) while I was using the long form (mysite.ext/tiki-index.php?page=Apostro'phe). Activating the short form, things start working for me too (mysite.ext/Apostro'phe).

This still leaves it giving 403 errors for searches (tiki-searchresults.php?highlight=Apostro'phe) and possibly some other thing I didn't think to test, but this is a big step up.

At this point I'm supposing there's some server security thing that certain files in combination with apostrophes are getting snagged on, but others like tiki-editpage weren't matching. Removing tiki-index from the URLs just sidesteps it.