php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58470 Parse URLs without brackets
Submitted: 2008-12-20 07:40 UTC Modified: 2009-02-17 17:58 UTC
From: void at void dot com Assigned:
Status: Not a bug Package: bbcode (PECL)
PHP Version: 5.2.5 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: void at void dot com
New email:
PHP Version: OS:

 

 [2008-12-20 07:40 UTC] void at void dot com
Description:
------------
URLs without [url] tags should be converted into valid HTML links. The current version doesn't seem to have this functionality.

Reproduce code:
---------------
http://subdomain.domain.com

https://subdomain.domain.com

http://subdomain.domain.com/page.ext

http://domain.com

http://domain.com/page.ext

subdomain.domain.com

subdomain.domain.com/page.ext

domain.com

domain.com/page.ext

Expected result:
----------------
<a href="http://subdomain.domain.com">subdomain.domain.com</a>

<a href="https://subdomain.domain.com">subdomain.domain.com</a>

<a href="http://subdomain.domain.com/page.ext">subdomain.domain.com/page.ext</a>

<a href="http://domain.com">domain.com</a>

<a href="http://domain.com/page.ext">domain.com/page.ext</a>

<a href="http://subdomain.domain.com">subdomain.domain.com</a>

<a href="http://subdomain.domain.com/page.ext">subdomain.domain.com/page.ext</a>

<a href="http://domain.com">domain.com</a>

<a href="http://domain.com/page.ext">domain.com/page.ext</a>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-17 17:58 UTC] jani@php.net
That is something you need to do outside bbcode, it's not 
this extension's job.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 10:01:29 2025 UTC