Skip to content

Commit

Permalink
Pro XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Apr 29, 2015
1 parent be10761 commit a695ff3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Pro-Changes.md
Expand Up @@ -15,6 +15,8 @@ POOL2 = ConnectionPool.new { Redis.new(:url => "redis://localhost:6378/0") }
mount Sidekiq::Pro::Web.with(redis_pool: POOL1) => '/sidekiq1'
mount Sidekiq::Pro::Web.with(redis_pool: POOL2) => '/sidekiq2'
```
- **SECURITY** Fix batch XSS in error data. Thanks to moneybird.com for
reporting the issue.

2.0.1
-----------
Expand Down
2 changes: 1 addition & 1 deletion lib/sidekiq/exception_handler.rb
Expand Up @@ -6,7 +6,7 @@ module ExceptionHandler
class Logger
def call(ex, ctxHash)
Sidekiq.logger.warn(ctxHash) if !ctxHash.empty?
Sidekiq.logger.warn ex
Sidekiq.logger.warn "#{ex.class.name}: #{ex.message}"
Sidekiq.logger.warn ex.backtrace.join("\n") unless ex.backtrace.nil?
end

Expand Down

0 comments on commit a695ff3

Please sign in to comment.