@@ -143,6 +143,7 @@ function show_icon_edit(element_html) {
143
143
}
144
144
$ form ->applyFilter (array ('lastname ' , 'firstname ' ), 'stripslashes ' );
145
145
$ form ->applyFilter (array ('lastname ' , 'firstname ' ), 'trim ' );
146
+ $ form ->applyFilter (array ('lastname ' , 'firstname ' ), 'html_filter ' );
146
147
$ form ->addRule ('lastname ' , get_lang ('ThisFieldIsRequired ' ), 'required ' );
147
148
$ form ->addRule ('firstname ' , get_lang ('ThisFieldIsRequired ' ), 'required ' );
148
149
@@ -165,6 +166,7 @@ function show_icon_edit(element_html) {
165
166
}
166
167
$ form ->applyFilter ('official_code ' , 'stripslashes ' );
167
168
$ form ->applyFilter ('official_code ' , 'trim ' );
169
+ $ form ->applyFilter ('official_code ' , 'html_filter ' );
168
170
if (api_get_setting ('registration ' , 'officialcode ' ) == 'true ' && api_get_setting ('profile ' , 'officialcode ' ) == 'true ' ) {
169
171
$ form ->addRule ('official_code ' , get_lang ('ThisFieldIsRequired ' ), 'required ' );
170
172
}
@@ -202,6 +204,7 @@ function show_icon_edit(element_html) {
202
204
}
203
205
$ form ->applyFilter ('phone ' , 'stripslashes ' );
204
206
$ form ->applyFilter ('phone ' , 'trim ' );
207
+ $ form ->applyFilter ('phone ' , 'html_filter ' );
205
208
/*if (api_get_setting('registration', 'phone') == 'true') {
206
209
$form->addRule('phone', get_lang('ThisFieldIsRequired'), 'required');
207
210
}
0 commit comments