Re: Duplicate paths in Login and Delete URLs
Jan Schneider <[email protected]> Tue, 05 Sep 2006 11:08:42 +0200
| Newsgroups | gmane.comp.horde.mimp |
|---|---|
| Message-ID | <[email protected]> |
Zitat von Alex Kuretz <[email protected]>: > I think I found something, may be just an issue with the way my > server (Dreamhost) works. I found that the Delete url gets > constructed differently than the rest of the links in the Menu > section; it's created by Util::addParameter which uses Horde::selfUrl. > > In Horde::selfUrl, the first check is if the script is running as > CGI (I had to recompile php to use Imp on Dreamhost, so it's > executing as CGI). The problem occurs when the url is constructed > with the script parameters: > if ($script_params) { > if (!empty($_SERVER['PATH_INFO'])) { > if($_SERVER['PATH_INFO'] == $_SERVER['PHP_SELF']) > { > // print "<br><br>Blah!<br><br>\n"; > } else { > $url .= $_SERVER['PATH_INFO']; > } > } > if (!empty($_SERVER['QUERY_STRING'])) { > $url .= '?' . $_SERVER['QUERY_STRING']; > } > } > > I added the if check for PATH_INFO == PHP_SELF. Basically, the > /horde/mimp/message.php (PATH_INFO) was getting appended to $url > which already was set to /horde/mimp/message.php (PHP_SELF). My > silly fix seems to work for the few cases I tried, and Imp seems to > still function ok. Again, not fully tested. > > I'm guessing this is an issue due to the way my server is working, > or else I'm fixing something that's not really a bug, but is shown > due to a problem elsewhere. > > Any input would be appreciated! > Thanks, > Alex Please create a ticket on http://bugs.horde.org Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/ -- mimp mailing list - Join the hunt: http://horde.org/bounties/#mimp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]