mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 06:28:57 +08:00
Fix DiscourseCops/NoURIEscapeEncode errors and re-enable
This commit is contained in:
parent
44e0c9e0b4
commit
ce03092e61
|
@ -140,8 +140,6 @@ DiscourseCops/NoChdir:
|
|||
|
||||
DiscourseCops/NoURIEscapeEncode:
|
||||
Enabled: true
|
||||
Exclude:
|
||||
- 'plugins/**/*'
|
||||
|
||||
Style/GlobalVars:
|
||||
Enabled: true
|
||||
|
|
|
@ -121,7 +121,7 @@ class TwitterApi
|
|||
|
||||
def bearer_token_credentials
|
||||
Base64.strict_encode64(
|
||||
"#{URI::encode(consumer_key)}:#{URI::encode(consumer_secret)}"
|
||||
"#{UrlHelper.encode_component(consumer_key)}:#{UrlHelper.encode_component(consumer_secret)}"
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user