Skip to content

danduke/encoding-test

Repository files navigation

The purpose of this project is to demonstrate an encoding problem introduced in grails 4.0.4.

In general, this is a blank application using all defaults. It was created with grails create-app.

Important files

General Approach

Change grails version in gradle.properties. No other changes are needed.

grails-4.0.3

  • Run the application with run-app and note that the index page shows "Test(line break)String" on two lines. The HTML output from the codec is not encoded.
  • Run gradle tasks clean (just to be sure) and assemble. Run the resulting jar. Note that the index page shows the same thing as before.

grails-4.0.4

  • Same output from run-app
  • When using clean, assemble, and running the resulting jar, the index page output shows the text "Test<br/>String" with the HTML encoded.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages