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

Sidekiq::Web escape tests #1299

Merged
merged 4 commits into from
Oct 30, 2013
Merged

Conversation

lian
Copy link
Contributor

@lian lian commented Oct 30, 2013

Sidekiq::Web: add tests for escaping job args and error messages.

i noticed that escaping error messages was added recently but doing the same with args was still missing.

all old and new test passed.

  ERB::Util.h doesn't escape apostrophes and slash.

  Rack::Utils.escape_html is more performant and also escapes all char recommended by OWASP. (rack/rack#27)
@mperham
Copy link
Collaborator

mperham commented Oct 30, 2013

Nice work!

Would you mind removing the rake task? If you don't want to run redis 24/7, you should have your own script to start/stop it. lunchy start redis is all I use.

What is the reasoning behind switching from ERB to Rack::Utils?

@lian
Copy link
Contributor Author

lian commented Oct 30, 2013

ok will push the pull request without the rake task again.

please look at the commit message for the Rack::Utils change

edit: ok pushed

@mperham
Copy link
Collaborator

mperham commented Oct 30, 2013

Would update the changelog to give yourself credit?

@lian
Copy link
Contributor Author

lian commented Oct 30, 2013

added myself to Changes.md if thats what you mean by changelog.

thanks for merging and your awesome library!

mperham added a commit that referenced this pull request Oct 30, 2013
@mperham mperham merged commit a78ae56 into sidekiq:master Oct 30, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants