2017-08-08, 11:55 PM
Hello.
We discover one misbehaviour with the Auto URL function in MyBB
If you write an URL with subdomain www, and put (at least) one of these "w" on mayusc, the function will use www as protocol instead of subdomain when make the link.
Examples:
Www.example.com
wWw.example.com
wwW.example.com
On this board only work as described on the first two examples, on a new board when (al least) one w have mayusc the misbehaviour appears. (Screen shot attached and HTML included below)
[attachment=39189]
We discover one misbehaviour with the Auto URL function in MyBB
If you write an URL with subdomain www, and put (at least) one of these "w" on mayusc, the function will use www as protocol instead of subdomain when make the link.
Examples:
Writen Www.example.com
Result:Www.example.com
Writen: wWw.example.com
Result:wWw.example.com
Writen wwW.example.com
Result:wwW.example.com
Writen WWW.example.com
WWW.example.comOn this board only work as described on the first two examples, on a new board when (al least) one w have mayusc the misbehaviour appears. (Screen shot attached and HTML included below)
[attachment=39189]
<div class="post_body scaleimages" id="pid_1">Normal:<br>
<a href="http://www.example.com" target="_blank" class="mycode_url">http://www.example.com</a><br>
<br>
One Mayusc (at least):<br>
<a href="Www://example.com" target="_blank" class="mycode_url">Www://example.com</a><br>
<a href="WWw://example.com" target="_blank" class="mycode_url">WWw://example.com</a><br>
<a href="WWW://example.com" target="_blank" class="mycode_url">WWW://example.com</a><br>
<a href="wWW://example.com" target="_blank" class="mycode_url">wWW://example.com</a><br>
<a href="wWw://example.com" target="_blank" class="mycode_url">wWw://example.com</a><br>
<br>
Others:<br>
WWWW.example.com
</div>