diff --git a/changelog.php b/changelog.php
index 67a921d..c6c0d01 100644
--- a/changelog.php
+++ b/changelog.php
@@ -14,6 +14,9 @@
- -> Removed
! -> Note
+Version 8.1.3
+# Fixed profile link not working
+
Version 8.1.2
^ Cursor is now inserted between tags if they're empty
^ Error now thrown if session has expired
diff --git a/mod_shoutbox/helper.php b/mod_shoutbox/helper.php
index f924ced..2aafd86 100644
--- a/mod_shoutbox/helper.php
+++ b/mod_shoutbox/helper.php
@@ -303,7 +303,7 @@ public function countShouts()
->from($db->qn('#__shoutbox'));
$db->setQuery($query);
-
+
return $db->loadResult();
}
@@ -378,11 +378,11 @@ public function postFiltering($shout, $user, $swearCounter, $swearNumber, $displ
// Ensure the max length of posts is the parameter value
if ($this->params->get('messagelength') == 1)
{
- $length = $this->params->get('messagelength', '200');
+ $length = $this->params->get('messagelength', '200');
}
else
{
- $length = false;
+ $length = false;
}
$message = JString::substr($message, 0, $length);
@@ -403,8 +403,8 @@ public function postFiltering($shout, $user, $swearCounter, $swearNumber, $displ
$messageFilter = JFilterInput::getInstance($acceptedtags,$acceptedAttribs);
// Do the filtering
- $name = $nameFilter->clean($name, 'string');
- $message = $messageFilter->clean($message, 'string');
+ $name = $nameFilter->clean($name, 'string');
+ $message = $messageFilter->clean($message, 'string');
// Start the email cloaking process
$searchEmail = '([\w\.\-\+]+\@(?:[a-z0-9\.\-]+\.)+(?:[a-zA-Z0-9\-]{2,10}))';
@@ -420,7 +420,7 @@ public function postFiltering($shout, $user, $swearCounter, $swearNumber, $displ
// Replace the found address with the js cloaked email
$message = substr_replace($message, $replacement, $regs[1][1], strlen($mail));
}
-
+
if ($swearCounter == 0 || $swearCounter == 1 && (($nameSwears + $messageSwears) <= $swearNumber))
{
return $this->addShout($shout['type'], $shout['id'], $name, $message, $ip);
@@ -506,7 +506,7 @@ public function bbcodeFilter($message)
'$3',
'$3'
);
-
+
$message = preg_replace($search, $replace, $message);
return $message;
@@ -1092,12 +1092,6 @@ public function preRender($shout)
$profile = $this->params->get('profile');
$shout->name = $this->linkUser($profile, $shout->name, $shout->user_id);
- // Strip from the username
- if (in_array($profile, array(1, 2, 3, 4)))
- {
- $shout->name = strip_tags($shout->name);
- }
-
// Perform Smiley and BBCode filtering if required
if ($bbcode == 1)
{
diff --git a/mod_shoutbox/layouts/message.php b/mod_shoutbox/layouts/message.php
index d69fb6f..4125d7e 100644
--- a/mod_shoutbox/layouts/message.php
+++ b/mod_shoutbox/layouts/message.php
@@ -20,7 +20,7 @@
?>
-