mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Pro XSS
This commit is contained in:
parent
be10761693
commit
a695ff347a
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
-----------
|
||||
|
|
|
@ -6,7 +6,7 @@ module Sidekiq
|
|||
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue