Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
What is turning colons into %3B?
Avatar
borekb #1
Member since Jan 2010 · 35 posts
Group memberships: Members
Show profile · Link to this post
Subject: What is turning colons into %3B?
I'm running DokuWiki on IIS 7.5 with nice URLs provided by the URL Rewrite module. Something is converting my namespace colons to URL entities (%3B) so instead of ns:page, I see ns%3Bpage which is not very nice.

Any ideas which piece of software is doing this and how it can be fixed? Or is it a browser thing? I'm using Firefox.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 2329 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
Try setting 'useslash' to true.  It will substitute a forward slash for the colon.
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
borekb #3
Member since Jan 2010 · 35 posts
Group memberships: Members
Show profile · Link to this post
I actually like the colon as a separator and would like to achieve something similar to http://www.dokuwiki.org/config:title etc.
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 2329 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
Then I think you will have to use the htaccess option for nice urls.  This requires uncommenting the rewrite rules in .htaccess.dist and renaking it to .htaccess.  But make sure that you have write access to conf/local.php so that you can manually reset
$conf['userewrite'] = '1'
back to
$conf['userewrite'] = '2';

Because if your server doesn't accept the change you will not be able to access your pages.
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
borekb #5
Member since Jan 2010 · 35 posts
Group memberships: Members
Show profile · Link to this post
I'm running IIS 7.5 as noted in the first post. Something is causing colons to be displayed as HTML entities so I'm looking for someone who is running DokuWiki on IIS and knows what it can be.
Avatar
turnermm (Moderator) #6
Member since Oct 2009 · 2329 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
Sorry for not paying attention. Neverthless, the same thing happens on Linux when using Dokuwiki's internal rewrite facility.  But I found that on Linux it's not consistent!!
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited on 2012-02-27, 13:50 by turnermm.
Avatar
borekb #7
Member since Jan 2010 · 35 posts
Group memberships: Members
Show profile · Link to this post
One thing I noticed is that for instance from the ?do=index page, the link to wiki:syntax is actually wiki;syntax, i.e. the colon is replaced by semicolon in the URL. Does DokuWiki do this? What does semicolon mean? Can it be the cause for this problem?
Avatar
turnermm (Moderator) #8
Member since Oct 2009 · 2329 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
At this point, after some fiddling around, I am not sure where the colon is being converted.  It happens on Windows 7 with Apache, so I suspect the conversion is being done by Dokuwiki, particularly because outside of Dokuwiki, these conversions don't seem to occur.

There were some problems using rewrite 2 with Windows server, and so perhaps the conversion resulted from that.  See: http://www.dokuwiki.org/rewrite, where you can get more information, and about how to use the apache-style rewrite rules, which may solve your problem.
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
borekb #9
Member since Jan 2010 · 35 posts
Group memberships: Members
Show profile · Link to this post
How about the semicolon? It is generated by DokuWiki, isn't it? I have been using DokuWiki about 2 years back and I don't remember ever seeing semicolon anywhere, is it something new with recent DW releases? Maybe the answer is in there...
Avatar
turnermm (Moderator) #10
Member since Oct 2009 · 2329 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
I don't see that myself.  Do you mean when you click on a link in the index listings (sitemap in recent versions) the resulting url contains a semi-colon?
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
borekb #11
Member since Jan 2010 · 35 posts
Group memberships: Members
Show profile · Link to this post
Yes, exactly. When I go to sitemap and expand the "wiki" namespace, this is an example of HTML that displays the links:

<a title="wiki:syntax" class="wikilink1" href="/wiki%3Bsyntax">syntax</a>

So the title is correct but the actual link contains semicolon instead of a colon (%3B = semicolon). And semicolon is what I see in the browser status bar while hovering over the link.

Not sure why semicolon is there, never seen that before "Angua".
Avatar
ach (Administrator) #12
Member since May 2006 · 1338 posts · Location: London, UK
Group memberships: Administrators, Members, Super Mods, Wiki Managers
Show profile · Link to this post
The semicolon was always there, from the very beginning (2004). The problem is that ":" is actually not valid on NTFS file systems and therefore produces a server error on Windows servers. So DokuWiki rewrites the URL specifically if it's run on any Windows OS.
Avatar
borekb #13
Member since Jan 2010 · 35 posts
Group memberships: Members
Show profile · Link to this post
Interesting, that explains why DokuWiki incorrectly replaces colon with semicolon. I think I have a fix for common.php, will try to contribute it via Github when time permits.
Avatar
borekb #14
Member since Jan 2010 · 35 posts
Group memberships: Members
Show profile · Link to this post
Pull request submitted, hope this will help other Windows Server users.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Current time: 2014-04-24, 06:32:47 (UTC +02:00)