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 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+
1721Version 8.1.11
1822# Fixed easyprofile avatars not showing on refresh
1923# 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)
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 }
Original file line number Diff line number Diff line change 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 >
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