<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>&quot;Problem Report&quot; return_url parameter needs to be complete URI</title> 
  <pubDate>Fri, 10 Apr 2026 17:02:36 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/2350</link> 
  <atom:link rel="self" type="application/rss+xml" title="&quot;Problem Report&quot; return_url parameter needs to be complete URI" href="https://bugs.horde.org/ticket/2350/rss" /> 
  <description>&quot;Problem Report&quot; return_url parameter needs to be complete URI</description> 
 
   
   
  <item> 
   <title>Hi Jan (I posted this to the dev list, but you asked me to p</title> 
   <description>Hi Jan (I posted this to the dev list, but you asked me to post here).



This is fairly simple, but took me a long time to track it down, so I&#039;ll explain it in detail.



In lib/Horde.php (confirmed in CVS v. 1.522), the getServiceLink() method is responsible for creating the URL that is used for the &#039;Problem Report&#039; 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 &#039;return to sender&#039; is accomplished using an HTTP Location header.  The current CVS version 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



The attached diff can be used with patch to make the one-line change required to fix this bug



See http://pastebin.com/323798 for a highlighted example of the one-line change the patch would make.

</description> 
   <pubDate>Thu, 28 Jul 2005 18:51:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2350#t10135</link> 
  </item> 
   
  <item> 
   <title>Committed, thanks.</title> 
   <description>Committed, thanks.</description> 
   <pubDate>Fri, 29 Jul 2005 09:18:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2350#t10158</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
