Skip to content

Instantly share code, notes, and snippets.

@baybal
Last active December 20, 2018 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baybal/c6059538121443aaad2dddf17108aead to your computer and use it in GitHub Desktop.
Save baybal/c6059538121443aaad2dddf17108aead to your computer and use it in GitHub Desktop.
White space escape failure
2018/12/20 17:23:16 [warning] You are running pREST in public mode.
[prest] listening on 0.0.0.0:8000 and serving on /
[negroni] 2018-12-20T17:23:28+06:00 | 400 | 466.727µs | localhost:8000 | GET /DB0001/public/test
___________________________________________________________________________________
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?Auto%20ID=1"
{
"error": "could not perform WhereByRequest: invalid identifier: Auto ID"
}
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?\"Auto\ ID\"=1"
400 Bad Request
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?\"Auto ID\"=1"
400 Bad Request
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?\'Auto ID\'=1"
400 Bad Request
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?\'Auto\ ID\'=1"
400 Bad Request
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?Auto\ ID=1"
400 Bad Request
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?Auto ID=1"
400 Bad Request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment