php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32118 Incorrect clickable link inside code in Your Notes:
Submitted: 2005-02-26 07:16 UTC Modified: 2006-09-28 13:29 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: php dot osde dot info at oths dot co dot uk Assigned: bjori (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
 [2005-02-26 07:16 UTC] php dot osde dot info at oths dot co dot uk
Description:
------------
When a URL with trailing slash inside single quotes inside a code snipit is turned into a clickable link the closing ' is included in the link.

Reproduce code:
---------------
<?php
$url = "http://www.osde.info/";
?>

<?php
$url = 'http://www.osde.info/';
?>

Expected result:
----------------
<span class="string">"<a href="http://www.osde.info/" target="_blank">http://www.osde.info/</a>"</span>

<span class="string">'<a href="http://www.osde.info/" target="_blank">http://www.osde.info/</a>'</span>


Actual result:
--------------
<span class="string">"<a href="http://www.osde.info/" target="_blank">http://www.osde.info/</a>"</span>

<span class="string">'<a href="http://www.osde.info/'" target="_blank">http://www.osde.info/'</a></span>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-28 13:29 UTC] bjori@php.net
This bug has been fixed in CVS. Since the websites are not directly
updated from the CVS server, the fix might need some time to spread
across the globe to all mirror sites, including PHP.net itself.

Thank you for the report, and for helping us make PHP.net better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 11:00:02 2026 UTC