File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="guard" {
66 // --- OWASP Java Encoder Targets ---
77
88 it ( " encodes for HTML" , function () {
9- var raw = ' <b> "Test" & \ ' Check \ ' </b>' ;
9+ var raw = ' <b> "Test" & '' Check' ' </b>' ;
1010 var expected = ' <b> "Test" & ' ;Check & #39; </b>' ;
1111 expect ( guardEncode (raw , " html" ) ).toBe ( expected );
1212 });
@@ -46,7 +46,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="guard" {
4646 // --- CustomEncoder Targets ---
4747
4848 it ( " encodes for LDAP DN (Distinguished Name)" , function () {
49- var raw = " Doe, John #123" ;
49+ var raw = " Doe, John ## 123" ;
5050 // Should escape the leading # and the comma
5151 expect ( guardEncode (raw , " dn" ) ).toBe ( " \#Doe \ , John \ #123" );
5252 });
You can’t perform that action at this time.
0 commit comments