Skip to content

Bug/jspwiki 1273#498

Open
spyhunter99 wants to merge 4 commits into
masterfrom
bug/JSPWIKI-1273
Open

Bug/jspwiki 1273#498
spyhunter99 wants to merge 4 commits into
masterfrom
bug/JSPWIKI-1273

Conversation

@spyhunter99

Copy link
Copy Markdown
Contributor

No description provided.

@juanpablo-santos juanpablo-santos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

couple of minor nitpicks but otherwise LGTM

/**
* Test of execute method, of class Image.
*/
@org.junit.jupiter.api.Test

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

minor nitpick: import the class so it can be referenced as @Test

if( !context.getBooleanWikiProperty( MarkupParser.PROP_ALLOWHTML, false ) ) {
if( src.startsWith( "data:" ) || src.startsWith( "javascript:" ) ) {
if(!context.getBooleanWikiProperty(MarkupParser.PROP_ALLOWHTML, false)) {
String testVal = src.toLowerCase().replaceAll("\\s+", "").trim();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

perhaps extract this to a method in TextUtil in case we end up needing it in other places?

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