Skip to content

Commit b68a402

Browse files
committed
Additional parameters support for relative links, like [url=2&action=new]
1 parent 53ef646 commit b68a402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: include/parser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ function handle_url_tag($url, $link = '', $bbcode = false)
590590
if ($return !== null)
591591
return $return;
592592

593-
if (preg_match('%^[#/]?\d+$%', $url)) // relative links [url=2], [url=#3] or [url=/3]
593+
if (preg_match('%^[#/]?\d+(&.*)?$%', $url)) // relative links [url=2], [url=#3] or [url=/3]
594594
{
595595
global $forum_url;
596596
if ($url[0] === '/')

0 commit comments

Comments
 (0)