Ticket #202 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

Pressing 'v' to open an article's URL fails when & is in the URL

Reported by: trac-user Assigned to: fox
Priority: minor Milestone: 1.2.22
Component: backend Version: 1.2.21
Keywords: rpc link backend & amp Cc:

Description

Installed v1.2.21 for the first time today - been messing with it.

I have found certain URLs that contain the & character fail to open when pressing 'v' to open the URL in a new window/tab.

The contents of the ACTUAL RSS feed would be something as follows: <link>http://blah.com/index.php?test=test&amp;test=test</link>

The backend-RPC file however, returns: <link>http://blah.com/index.php?test=test&test=test</link>

Accessing the RPC backend file directly with Firefox produces a parse error due to & not converted to &amp;

I fixed this by editing backend-rpc.php in the IF statement that handles "getArticleLink":

$link = ereg_replace("&", "&amp;", $link); $link = ereg_replace("&amp;amp;", "&amp;", $link); // Just in case...

Is this a bug?

Change History

04/18/08 12:58:34 changed by fox

  • status changed from new to assigned.
  • milestone set to 1.2.22.

Accepted.

04/18/08 13:30:23 changed by www-ttrss

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [2334]) [project @ getArticleLink: add escaping; open_article_in_new_window: add error notifications (closes #202)]