Skip to content

Instantly share code, notes, and snippets.

@joakime
Created December 26, 2012 21:29
Show Gist options
  • Save joakime/4383281 to your computer and use it in GitHub Desktop.
Save joakime/4383281 to your computer and use it in GitHub Desktop.
A jetty rule to strip/trim bad jsp requests
<!-- Trim oddball JSP request URIs -->
<Call name="addRule">
<Arg>
<New class="org.eclipse.jetty.rewrite.handler.RewriteRegexRule">
<Set name="regex">(.*)\.jsp(\00.*)</Set>
<Set name="replacement">$1.jsp</Set>
</New>
</Arg>
</Call>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment