Skip to content
Permalink
Browse files

Fix DiscourseCops/NoURIEscapeEncode errors and re-enable

  • Loading branch information
martin-brennan committed Dec 12, 2019
1 parent 44e0c9e commit ce03092e61f4dfcd574203305b9ab9d72aa83974
Showing with 1 addition and 3 deletions.
  1. +0 −2 .rubocop.yml
  2. +1 −1 lib/twitter_api.rb
@@ -140,8 +140,6 @@ DiscourseCops/NoChdir:

DiscourseCops/NoURIEscapeEncode:
Enabled: true
Exclude:
- 'plugins/**/*'

Style/GlobalVars:
Enabled: true
@@ -121,7 +121,7 @@ def bearer_token

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

0 comments on commit ce03092

Please sign in to comment.
You can’t perform that action at this time.