For some reason the link entered by the user when 'shouting' is surrounded by <p> tags, ie
<a href="<p>http://submittedurl.com</p>" target="_blank"><p>admin</p></a>
Making the link fail
I tried looking at shoutbox.module code but couldn't find anything obvious.
Greg
Comments
Comment #1
cgiscripts4u commentedOK after reading other threads found the problem was down to using Filtered HTML. To get around this problem without having to change the Filtered HTML settings I added the line
$shout->url=preg_replace('/<.?(p|br)>/','',$shout->url);just before the line
$title = "Posted " . date('m/d/y', $shout->created) . ' at ' . date('h:ia', $shout->created) . ' by ' . $shout->username;About line 732.
This now strips out any
and
tags from the url.
Greg
Comment #2
cgiscripts4u commentedOK after reading other threads found the problem was down to using Filtered HTML. To get around this problem without having to change the Filtered HTML settings I added the line
$shout->url=preg_replace('/<.?(p|br)>/','',$shout->url);just before the line
$title = "Posted " . date('m/d/y', $shout->created) . ' at ' . date('h:ia', $shout->created) . ' by ' . $shout->username;About line 732.
This now strips out any
and
tags from the url.
Greg
Comment #3
disterics commentedI think I fixed this in the 5.x version. Please upgrade and reopen this issue if its still a problem.