File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 37
37
use Html ;
38
38
use Session ;
39
39
use Toolbox ;
40
+ use Glpi \Toolbox \Sanitizer ;
40
41
use Glpi \RichText \RichText ;
41
42
use Glpi \Application \View \TemplateRenderer ;
42
43
@@ -128,12 +129,12 @@ public function serializeValue(): string {
128
129
]
129
130
);
130
131
$ this ->value = $ input [$ key ];
131
- $ this ->value = Html:: entity_decode_deep ($ this ->value );
132
+ $ this ->value = Sanitizer:: unsanitize ($ this ->value );
132
133
foreach ($ input ['_tag ' ] as $ tag ) {
133
134
$ regex = '/<img[^>]+ ' . preg_quote ($ tag , '/ ' ) . '[^<]+>/im ' ;
134
135
$ this ->value = preg_replace ($ regex , "# $ tag# " , $ this ->value );
135
136
}
136
- $ this ->value = Html:: entities_deep ($ this ->value );
137
+ $ this ->value = Sanitizer:: sanitize ($ this ->value );
137
138
}
138
139
139
140
return $ this ->value ;
You can’t perform that action at this time.
0 commit comments