File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Specialized Areas/Regular Expressions/Avoid Direct String in Widget HTML Templates -HealthScan Finding Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ ** Use Case**
2+ 1 . Adding string in HTML template without ${} or gs.getMessage('string') in server script attracts HealthScan findings.
3+ 2 . These string do not get translated in multi lingual portals.
4+ 3 . This will help in ensuring internationalization. Same BR can be used in "sp_ng_template" table.
5+
6+ ** How to use**
7+ 1 . Add this code as before insert/update BR on sp_widget table.
8+ 2 . The condition will be "Body HTML Changes."
9+ 3 . If Internationalisation is not followed, error message will be shown and action will be aborted.
10+
11+ ** Regex**
12+ />([ a-zA-Z] .* )<\/ /
13+ This Regex check any direct string between > and </ without ${} or ::data.string or : data .string
You can’t perform that action at this time.
0 commit comments