Loading...
 
Skip to main content

URL mangling in random redirects

Status
Pending
Subject
URL mangling in random redirects
Version
2.x
3.x
Category
  • Usability
  • Consistency
Feature
Wiki (page view, edit, history, rename, etc)
Trackers
All / Undefined
Resolution status
Partially solved
Submitted by
mrisch
Lastmod by
mrisch
Rating
(0)
Description
Many times, in random places, the www will get knocked off the hostname. I think it mostly occurs when I submit a confirmation to do something. I noticed it again today on: ./tiki-removepage.php when I confirmed the page removal at www.casesofinterest.comQuestion, I was returned to casesofinterest.com - kind of annoying, as I wasn't logged in to casesofinterest.com. The www should not be dropped.
Solution

The problem is $base_url - that needs to be properly set. I fixed it in tiki-removepage.php, but this is a problem everywhere $base_url shows up. This issue is $_SERVER'SERVER_NAME' v. $_SERVER'HTTP_HOST' where HTTP_HOST is the URL of the site, but servername is not.

$base_url will now reflect HTTP_HOST, but other files using SERVER_NAME have not been updated.

Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
1964
Created
Saturday 16 August, 2008 18:50:04 UTC
by Unknown
LastModif
Sunday 17 August, 2008 17:29:51 UTC


Show PHP error messages