Fix DiscourseCops/NoURIEscapeEncode errors and re-enable

This commit is contained in:
Martin Brennan 2019-12-12 14:54:26 +10:00
parent 44e0c9e0b4
commit ce03092e61
2 changed files with 1 additions and 3 deletions

View File

@ -140,8 +140,6 @@ DiscourseCops/NoChdir:
DiscourseCops/NoURIEscapeEncode: DiscourseCops/NoURIEscapeEncode:
Enabled: true Enabled: true
Exclude:
- 'plugins/**/*'
Style/GlobalVars: Style/GlobalVars:
Enabled: true Enabled: true

View File

@ -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