Skip to content

Conversation

@jeremiahjstacey
Copy link
Collaborator

@xeno6696 I think this achieves the capability you were looking for with Issue 494. I have not worked much with the expectations of the Codec API so please let me know if I'm missing something.

As an aside, I did try to build the regex replacement capability as a separate class instance. In future cases like this we may just need to figure out the regex and inject this piece into the process.

The new test cases pass, but I am currently seeing an issue with ValidatorTest.testIsValidSafeHTML and ValidatorTest.testGetValidSafeHTML. I've verified that I am seeing the same failures across my fork of the develop branch.

Support class that can handle the regex replace/restore operations for a
codec's encoding process.
Updating regex use to only inspect group 0 of matcher.

Extending tests to include single line with multiple entries.
Overriding the CSSCodec encode function to use the
EncodingPatternPreservation utility class.  Adding in a regex for RGB
tuple configurations.  Providing test class to verify expected capability.
Duplicating the CSSCodecTest context in the DefaultEncoder test context.
}

Character second = input.next();
System.out.println("Second: " );
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This slipped in on me. Getting it cleaned up..

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

377d377 Cleans up the debug content

Removing debug content.
@xeno6696 xeno6696 merged commit 0ec2b35 into ESAPI:develop Oct 1, 2019
@jeremiahjstacey jeremiahjstacey deleted the issue_494 branch April 24, 2022 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants