Post subject: A site bug with subpages
Editor, Emulator Coder, Expert player (2157)
Joined: 5/22/2007
Posts: 1134
Location: Glitchvania
1. Open any subpage. 2. On that subpage, click on any link to a page that has a different parent or none. A wrong URL will be opened. EDIT: Oops. EDIT by Bisqwit: Made the topic title a bit more descriptive
<klmz> it reminds me of that people used to keep quoting adelikat's IRC statements in the old good days <adelikat> no doubt <adelikat> klmz, they still do
Post subject: Re: A site bug
Editor, Active player (297)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
klmz wrote:
1. Open any subpage. 2. On that subpage, click on any link to a page that has a different parent or none. A wrong URL will be opened.
Seems to be caused by missing environment variable "SCRIPT_URL". It is used for discerning how many "../" to insert into links. Anyone have idea why it's missing? EDIT: Fixed by adding "RewriteEngine on" to the <VirtualHost> declaration in Apache's configuration.
Post subject: Re: A site bug
Emulator Coder
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Bisqwit wrote:
Anyone have idea why it's missing?
I read a report a while back how Debian for CGI security purposes removed SCRIPT_URL and some other environment variables from PHP. This should only be an issue when running PHP in CGI mode though.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.