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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Thu Sep 23 20:03:38 2021 UTC