Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix url encoding to follow these rules #3

Open
casualjim opened this issue Apr 6, 2014 · 1 comment
Open

fix url encoding to follow these rules #3

casualjim opened this issue Apr 6, 2014 · 1 comment

Comments

@casualjim
Copy link
Member

fix url encoding to follow these rules
http://sinophibe.blogspot.nl/2011/07/proper-url-encoding-and-decoding.html

@lucastorri
Copy link

Hi,

This might be related: backchatio#3

I am having the same issue. A small test case in a Scalatra project (sbt console):

import rl.UrlCodingUtils
def check(uri: String) = UrlCodingUtils.urlDecode(UrlCodingUtils.ensureUrlEncoding(uri), toSkip = "/?#")

check("/%u002e%u002e%u2215%u002e%u002e%u2215%u002e%u002e%u2215%u002e%u002e%u2215%u002e%u002e%u2215%u002e%u002e%u2215%u002e%u002e%u2215%u002e%u002e%u2215%u002e%u002e%u2215etc%u2215hosts%00")

I'm using Scala 2.10.4 with Scalatra 2.2.2

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

No branches or pull requests

2 participants