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

Special characters in routes #95

Open
erikriverson opened this issue Aug 28, 2014 · 1 comment
Open

Special characters in routes #95

erikriverson opened this issue Aug 28, 2014 · 1 comment

Comments

@erikriverson
Copy link

Not sure if this is a true issue, but I ran into this while testing peek-mode with the scratch buffer, which contains the '*' character.

A simple example:

(defconst test-url
  '(("^/test/$" . test-handler)))

(defun test-handler (httpcon))

(defun my-test-handler (httpcon)
  (elnode-hostpath-dispatcher httpcon test-url))

(elnode-start 'my-test-handler :port 8010 :host "localhost")

Then visit:

http://localhost:8010/blah/
--> 404 not found, this is fine.

http://localhost:8010/bl*ah/
--> string 'Server error' returned with status 200

@nicferrier
Copy link
Owner

Sounds like an issue to me... can't remember if * is a valid char in urls though. I think I might have written a check with an error in there somewhere. I'll take a look.

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