Bitcoin Forum
December 13, 2024, 04:44:58 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: The forum didn't detect ")" in URL links.  (Read 129 times)
Despairo (OP)
Hero Member
*****
Offline Offline

Activity: 1246
Merit: 891


Bitcoin Casino Est. 2013


View Profile WWW
August 22, 2024, 03:30:10 PM
Merited by vapourminer (5), PowerGlove (2), ABCbits (1)
 #1

I crossed a post that has close parenthesis symbol aka ")" in URL links, specifically it's related to Bisq. I thought the forum ban this link, but after I made some research to find other URL link with close parenthesis symbol, the results is same https://en.wikipedia.org/wiki/Conda_(package_manager)

2. Face to face trade aka direct peer to peer, just like what stated on bisq https://bisq.wiki/Face-to-face_(payment_method)

The forum do detect the URL link if we encode the close parenthesis symbol and it's working fine.

https://bisq.wiki/Face-to-face_(payment_method%29

Is this a bug?

███▄▀██▄▄
░░▄████▄▀████ ▄▄▄
░░████▄▄▄▄░░█▀▀
███ ██████▄▄▀█▌
░▄░░███▀████
░▐█░░███░██▄▄
░░▄▀░████▄▄▄▀█
░█░▄███▀████ ▐█
▀▄▄███▀▄██▄
░░▄██▌░░██▀
░▐█▀████ ▀██
░░█▌██████ ▀▀██▄
░░▀███
▄▄██▀▄███
▄▄▄████▀▄████▄░░
▀▀█░░▄▄▄▄████░░
▐█▀▄▄█████████
████▀███░░▄░
▄▄██░███░░█▌░
█▀▄▄▄████░▀▄░░
█▌████▀███▄░█░
▄██▄▀███▄▄▀
▀██░░▐██▄░░
██▀████▀█▌░
▄██▀▀██████▐█░░
███▀░░
Xal0lex
Staff
Legendary
*
Offline Offline

Activity: 2674
Merit: 2639



View Profile WWW
August 22, 2024, 05:49:09 PM
Merited by vapourminer (1)
 #2

It's probably a bug. But you can hide the link and then it works.

Conda_(package_manager)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
PX-Z
Hero Member
*****
Offline Offline

Activity: 1666
Merit: 973


pxzone.online


View Profile WWW
August 22, 2024, 07:00:00 PM
 #3

I crossed a post that has close parenthesis symbol aka ")" in URL links, specifically it's related to Bisq. I thought the forum ban this link, but after I made some research to find other URL link with close parenthesis symbol, the results is same...
You mean link with parenthesis are ban here? Or just bisq url?

I don't think its a bug, it depends on the machine software used by the forum if those symbol can be used for URLs or they will be automatically encoded, i experienced this while developing websites.

Foxpup
Legendary
*
Offline Offline

Activity: 4547
Merit: 3445


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
August 22, 2024, 11:37:18 PM
Merited by vapourminer (5), PowerGlove (4), ABCbits (2), Despairo (1), BlackBoss_ (1)
 #4

It's just an ambiguity in the algorithm that determines what characters are or are not part of the URL; presumably it was expected that the more likely case would be a URL completely enclosed in parentheses, with the parentheses not being part of the URL itself (such as https://example.com).

You can avoid this by not relying on autodetection of URLs and instead manually using the [url][/url] tags.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
PowerGlove
Hero Member
*****
hacker
Offline Offline

Activity: 626
Merit: 5375



View Profile
August 23, 2024, 12:33:54 AM
Merited by Foxpup (3), ABCbits (2), vapourminer (1), Despairo (1), BlackBoss_ (1)
 #5

Foxpup is right. There's a pair of regexes that the auto-linker uses (the below are from 1.1.19):

'~(?<=[\s>\.(;\'"]|^)((?:http|https|ftp|ftps)://[\w\-_%@:|]+(?:\.[\w\-_%]+)*(?::\d+)?(?:/[\w\-_\~%\.@,\?&;=#(){}+:\'\\\\]*)*[/\w\-_\~%@\?;=#}\\\\])~i'

'~(?<=[\s>(\'<]|^)(www(?:\.[\w\-_]+)+(?::\d+)?(?:/[\w\-_\~%\.@,\?&;=#(){}+:\'\\\\]*)*[/\w\-_\~%@\?;=#}\\\\])~i'

If a piece near the end of each one were changed from #} to #)} then (I think) it would work in the way OP expected (but then, as Foxpup pointed out, enclosing URLs in parentheses would break).
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!