Unexpected URL omitting / shortening
#1
When using [url=#link]#text[/url] to display a link with some descriptive text, it's expected to show the full #text. However with the #text part being a URL, it gets shortened.

For example:
[url=https://github.com/mybb/mybb/blob/mybb_1829/inc/db_mysql.php#L682-L709]https://github.com/mybb/mybb/blob/mybb_1829/inc/db_mysql.php#L682-L709[/url] will output as
https://github.com/mybb/mybb/blob/mybb_1...#L682-L709
which is same as the output of
https://github.com/mybb/mybb/blob/mybb_1...#L682-L709

PS, the code of the above example is as follows

For example:
`[url=https://github.com/mybb/mybb/blob/mybb_1829/inc/db_mysql.php#L682-L709]https://github.com/mybb/mybb/blob/mybb_1829/inc/db_mysql.php#L682-L709[/url]` will output as
[url=https://github.com/mybb/mybb/blob/mybb_1829/inc/db_mysql.php#L682-L709]https://github.com/mybb/mybb/blob/mybb_1829/inc/db_mysql.php#L682-L709[/url]
which is same as the output of
[url=https://github.com/mybb/mybb/blob/mybb_1829/inc/db_mysql.php#L682-L709]https://github.com/mybb/mybb/blob/mybb_1...#L682-L709[/url]
Could be wrong but worth a try.
Email me at: [email protected]
Reply
#2
It seems to happen only on exact match: https://github.com/mybb/mybb/blob/mybb_1....php#L1188

It may be there to account for simple links http://..., [url]http://...[/url] being saved as [url=http://...]http://...[/url], or for how parameters are passed to the method when simple links are matched (https://github.com/mybb/mybb/blob/mybb_1....php#L1743).
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)