Skip to content

Commit 7c778d6

Browse files
committed
change label name to guard
1 parent f15e914 commit 7c778d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Encode.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 = '&lt;b&gt; &quot;Test&quot; &amp; &#39;Check&#39; &lt;/b&gt;';
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
});

0 commit comments

Comments
 (0)