File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 8585 $ value = str_replace ('[DOMAIN] ' , '' , $ value );
8686 $ value = str_replace ('[WEBSITE] ' , '' , $ value );
8787 }
88+ if ($ id == 'list_categories ' ) {
89+ $ categories = explode (', ' ,$ value );
90+ $ clean = array ();
91+ foreach ($ categories as $ category ) {
92+ $ clean [] = preg_replace ('/[^A-Z0-9\. ]+/i ' ,'' ,$ category );
93+ }
94+ $ value = implode (', ' ,$ clean );
95+ }
8896 if (empty ($ value ) && !$ info ['allowempty ' ]) {
8997 // Error($info['description']. ' ' . $GLOBALS['I18N']->get('cannot be empty'));
9098 $ haserror = $ info ['description ' ].' ' .$ GLOBALS ['I18N ' ]->get ('cannot be empty ' );
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ function listMemberCounts($listId)
177177 }
178178 $ tabs = new WebblerTabs ();
179179 foreach ($ aListCategories as $ category ) {
180- $ category = trim ($ category );
180+ $ category = trim (htmlspecialchars ( $ category) );
181181 if ($ category == '' ) {
182182 $ category = s ('Uncategorised ' );
183183 }
You can’t perform that action at this time.
0 commit comments