Skip to content

Commit cce7b56

Browse files
authored
Merge pull request #288 from JoomJunk/development
Update to v8.1.12
2 parents 9ae3f4e + a0595d3 commit cce7b56

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

changelog.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
- -> Removed
1515
! -> Note
1616

17+
Version 8.1.12
18+
* Prevent access via the 'window.opener' object with submitted links
19+
^ Fix smiley being shown multiple times for the same image if there are multiple shortcuts
20+
1721
Version 8.1.11
1822
# Fixed easyprofile avatars not showing on refresh
1923
# Fixed incorrect name used when updating a different user's shout

mod_shoutbox/helper.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ public function bbcodeFilter($message)
514514
'<span class="jj-italic">$1</span>',
515515
'<span class="jj-underline">$1</span>',
516516
'<a href="#" data-jj-image="http$1://$2" data-jj-image-alt="$3" class="jj-image-modal">$3</a>',
517-
'<a href="http$1://$2" target="_blank">$3</a>'
517+
'<a href="http$1://$2" target="_blank" rel="noopener noreferrer">$3</a>'
518518
);
519519

520520
$message = preg_replace($search, $replace, $message);
@@ -527,7 +527,7 @@ public function bbcodeFilter($message)
527527
*
528528
* @param string $id The id of the textarea to insert the smiley into
529529
*
530-
* @return array $smilies The smiley images html code.
530+
* @return string $smilies The smiley images html code.
531531
*
532532
* @since 1.2
533533
*/
@@ -536,8 +536,9 @@ public function smileyShow($id = 'jj_message')
536536
$getSmilies = $this->getSmilies();
537537

538538
$smilies = '';
539+
$uniqueSmilies = array_unique($getSmilies);
539540

540-
foreach ($getSmilies as $smile => $url)
541+
foreach ($uniqueSmilies as $smile => $url)
541542
{
542543
$smilies .= '<li><img class="jj_smiley" src="images/mod_shoutbox/' . $url . '" alt="' . $smile . '" onClick="JJShoutbox.addSmiley(\'' . $smile . '\', \'' . $id . '\')" /></li>';
543544
}

mod_shoutbox/mod_shoutbox.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<license>http://www.gnu.org/licenses/gpl-3.0.html</license>
88
<authorEmail>admin@joomjunk.co.uk</authorEmail>
99
<authorUrl>http://www.joomjunk.co.uk</authorUrl>
10-
<version>8.1.11</version>
10+
<version>8.1.12</version>
1111
<description>JJSHOUTBOX_DESCRIPTION</description>
1212

1313
<install>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Placeholder file for database changes for version 8.1.12
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Placeholder file for database changes for version 8.1.12

0 commit comments

Comments
 (0)