[Rejected] MyCode bug for www. URLs
#1
1. In usual if you post link like
www.google.com
it's changed to
http://www.google.com
by MyBB.


2. But if you enable a MyCode for styling links, like:
Regular Expression:
\[url\](.*?)\[/url\]

Replacement:
<a href="$1" target="_blank" class="new-class">$1</a>


3. Then
www.google.com
not changed by MyBB and goes like:
https://forum.mydomain.com/www.google.com
-
Reply
#2
According to the code i see if there is not http:// or https:// prefix then it won't be recognized as an external link. And it won't work as MyCode overwrites the default bbcodes to perform right.
[Image: cafaf18ba2.gif]
FileSquid is under development
[Image: trk1]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)