@@ -661,7 +661,7 @@ public function addItem()
661
661
});
662
662
$( \'#add_portfolio_template \').on( \'change \', function () {
663
663
$( \'#portfolio-spinner \').show();
664
-
664
+
665
665
$.getJSON(_p.web_ajax + \'portfolio.ajax.php?a=find_template&item= \' + this.value)
666
666
.done(function(response) {
667
667
if (CKEDITOR.instances.title) {
@@ -3994,7 +3994,7 @@ private function createCommentForm(Portfolio $item): string
3994
3994
$(function() {
3995
3995
$( \'#frm_comment_template \').on( \'change \', function () {
3996
3996
$( \'#portfolio-spinner \').show();
3997
-
3997
+
3998
3998
$.getJSON(_p.web_ajax + \'portfolio.ajax.php?a=find_template_comment&comment= \' + this.value)
3999
3999
.done(function(response) {
4000
4000
CKEDITOR.instances.content.setData(response.content);
@@ -4094,7 +4094,7 @@ private function generateItemContent(Portfolio $item): string
4094
4094
$ origin = $ em ->find (Portfolio::class, $ item ->getOrigin ());
4095
4095
4096
4096
if ($ origin ) {
4097
- $ originContent = $ origin ->getContent ();
4097
+ $ originContent = Security:: remove_XSS ( $ origin ->getContent () );
4098
4098
$ originContentFooter = vsprintf (
4099
4099
get_lang ('OriginallyPublishedAsXTitleByYUser ' ),
4100
4100
[
@@ -4107,7 +4107,7 @@ private function generateItemContent(Portfolio $item): string
4107
4107
$ origin = $ em ->find (PortfolioComment::class, $ item ->getOrigin ());
4108
4108
4109
4109
if ($ origin ) {
4110
- $ originContent = $ origin ->getContent ();
4110
+ $ originContent = Security:: remove_XSS ( $ origin ->getContent () );
4111
4111
$ originContentFooter = vsprintf (
4112
4112
get_lang ('OriginallyCommentedByXUserInYItem ' ),
4113
4113
[
0 commit comments