I've been working on 5.1.2b5php and have run across some problems in the URL markup code. Here's the problem with the following URLs:
works fine:
[ url ]
http://www.charisma-carpenter.com[ /url ]
Becomes http://.charisma-carpenter.com
[ url ]
www.charisma-carpenter.com[ /url ]
Works fine:
[ url ]
http://charisma-carpenter.com[ /url ]
Becomes http://www.charisma-carpenter.com/pathtow3t/charisma-carpenter.com
[ url ]charisma-carpenter.com[ /url ]
So I've been tinkering, and have tooled my URL markup to this in order to accomodate all these URLs into correct hyperlinks. The new block of code (main.inc lines 438-443) is posted below:
// ---------------------------
// Convert url markup -> html
$Body = preg_replace("/\[url\]http:\/\/([^\[]*?)\[\/url\]/","<a target="_blank" href=http://\\1>http://\\1</a>",$Body);
$Body = preg_replace("/\[url\]([^\[]*?)\[\/url\]/","<a target="_blank" href=http://\\1>\\1</a>",$Body);
$Body = preg_replace("/\
([^\[]*?)\[\/url\]/","<a target=...er.com]http://www.charisma-carpenter.com