[dev] Bugfix: Problem Report full URL

Jan Schneider jan at horde.org
Thu Jul 28 08:22:51 PDT 2005


Zitat von Greg Rundlett <Greg.Rundlett at savaJe.com>:

> In lib/Horde.php, the getServiceLink() method is responsible for 
> creating the URL that is used for the 'Problem Report' function 
> displayed in most Horde applications.  The generated URL contains a 
> querystring parameter (return_url), that is then used to return the 
> user from whence they came after submitting the form.  This 'return 
> to sender' is accomplished using an HTTP Location header.  The 
> version of Horde that I have (3.0) only creates a relative path for 
> the return_url parameter.  The HTTP location header should always use 
> a complete URI.  Also, a proxied application will result in a 404 
> error if the querystring parameter is just a relative path.  Using 
> the optional $full arguments to Horde::url() and  Horde::selfUrl() 
> cures these issues, creating a Problem Report URL like the following:
> https://mead-2.savaje.com/ab-dev/services/problem.php?return_url=https%3A%2F%2Fmead-2.savaje.com%2Fab-dev%2Fautobuilder%2Faddr2line.php
> See
> http://pastebin.com/323798
> for patched version

Please make sure that is hasn't been fixed in CVS already, and upload a 
patch to bugs.horde.org.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list