mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:03:22 +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:
|
DiscourseCops/NoURIEscapeEncode:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
Exclude:
|
|
||||||
- 'plugins/**/*'
|
|
||||||
|
|
||||||
Style/GlobalVars:
|
Style/GlobalVars:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
|
@ -121,7 +121,7 @@ class TwitterApi
|
||||||
|
|
||||||
def bearer_token_credentials
|
def bearer_token_credentials
|
||||||
Base64.strict_encode64(
|
Base64.strict_encode64(
|
||||||
"#{URI::encode(consumer_key)}:#{URI::encode(consumer_secret)}"
|
"#{UrlHelper.encode_component(consumer_key)}:#{UrlHelper.encode_component(consumer_secret)}"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user