Reply To: Handle illegal hex characters in url

Splash Forums Rewrite Users Handle illegal hex characters in url Reply To: Handle illegal hex characters in url

#27326

I think you could do something like this:

.addRule(Join.path(“/search/{query}”).to(“/pages/search.xhtml?query={query}”))
.where("query").constrainedBy( (event, context, value) -> {
  // validate value here and return true if everything is fine
})

Now you just need some code that verifies that value doesn’t contain invalid escape sequences.