File tree Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 14
14
- -> Removed
15
15
! -> Note
16
16
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
+
17
21
Version 8.1.11
18
22
# Fixed easyprofile avatars not showing on refresh
19
23
# Fixed incorrect name used when updating a different user's shout
Original file line number Diff line number Diff line change @@ -514,7 +514,7 @@ public function bbcodeFilter($message)
514
514
'<span class="jj-italic">$1</span> ' ,
515
515
'<span class="jj-underline">$1</span> ' ,
516
516
'<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> '
518
518
);
519
519
520
520
$ message = preg_replace ($ search , $ replace , $ message );
@@ -527,7 +527,7 @@ public function bbcodeFilter($message)
527
527
*
528
528
* @param string $id The id of the textarea to insert the smiley into
529
529
*
530
- * @return array $smilies The smiley images html code.
530
+ * @return string $smilies The smiley images html code.
531
531
*
532
532
* @since 1.2
533
533
*/
@@ -536,8 +536,9 @@ public function smileyShow($id = 'jj_message')
536
536
$ getSmilies = $ this ->getSmilies ();
537
537
538
538
$ smilies = '' ;
539
+ $ uniqueSmilies = array_unique ($ getSmilies );
539
540
540
- foreach ($ getSmilies as $ smile => $ url )
541
+ foreach ($ uniqueSmilies as $ smile => $ url )
541
542
{
542
543
$ smilies .= '<li><img class="jj_smiley" src="images/mod_shoutbox/ ' . $ url . '" alt=" ' . $ smile . '" onClick="JJShoutbox.addSmiley( \'' . $ smile . '\', \'' . $ id . '\')" /></li> ' ;
543
544
}
Original file line number Diff line number Diff line change 7
7
<license >http://www.gnu.org/licenses/gpl-3.0.html</license >
8
8
<authorEmail >admin@joomjunk.co.uk</authorEmail >
9
9
<authorUrl >http://www.joomjunk.co.uk</authorUrl >
10
- <version >8.1.11 </version >
10
+ <version >8.1.12 </version >
11
11
<description >JJSHOUTBOX_DESCRIPTION</description >
12
12
13
13
<install >
Original file line number Diff line number Diff line change
1
+ # Placeholder file for database changes for version 8.1.12
Original file line number Diff line number Diff line change
1
+ # Placeholder file for database changes for version 8.1.12
You can’t perform that action at this time.
0 commit comments