Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
a00ce8c9
Unverified
Commit
a00ce8c9
authored
6 years ago
by
Eugen Rochko
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Remove dead code (#8919)
SignatureVerification#matches_time_window? is not called anywhere.
parent
2dba3131
main
add-fy
bump-rails-to-6.0
change-mute-filtering
dependabot/bundler/redis-4.6.0
deps/react-redux-loading-bar-5.0.4
deps/shakapacker
drop-support-old-runtimes
feature-abuse-metrics
feature-argument-deduplication
feature-circles
feature-collapsed-notifications
feature-e2ee-web-ui
feature-limited-visibility-bearcaps
feature-rich-tooltips
feature-secure-account-summary
feature-suspended-page
feature-unify-uis
fix-account-search-exclude-domains
fix-admin-api-params
fix-error-on-invalid-domain
fix-footer
fix-soft-deleted-reblog-error
fix-status-reach-finder
l10n_main
react18
refactor-raw-sql-queries
refactor/remove-legacy-decorator
refactor/streaming
remove-montserrat
remove-yarn
rubocop-fixes
stable-2.6
stable-2.7
stable-2.8
stable-2.9
stable-3.0
stable-3.1
stable-3.2
stable-3.3
stable-3.4
v3.5.3
v3.5.2
v3.5.1
v3.5.0
v3.5.0rc3
v3.5.0rc2
v3.5.0rc1
v3.4.8
v3.4.7
v3.4.6
v3.4.5
v3.4.4
v3.4.3
v3.4.2
v3.4.1
v3.4.0
v3.4.0rc2
v3.4.0rc1
v3.3.3
v3.3.2
v3.3.1
v3.3.0
v3.3.0rc3
v3.3.0rc2
v3.3.0rc1
v3.2.2
v3.2.1
v3.2.0
v3.2.0rc2
v3.2.0rc1
v3.1.5
v3.1.4
v3.1.3
v3.1.2
v3.1.1
v3.1.0
v3.1.0rc2
v3.1.0rc1
v3.0.2
v3.0.1
v3.0.0
v3.0.0rc3
v3.0.0rc2
v3.0.0rc1
v2.9.4
v2.9.3
v2.9.2
v2.9.1
v2.9.0
v2.9.0rc2
v2.9.0rc1
v2.8.4
v2.8.3
v2.8.2
v2.8.1
v2.8.0
v2.8.0rc3
v2.8.0rc2
v2.8.0rc1
v2.7.4
v2.7.3
v2.7.2
v2.7.1
v2.7.0
v2.7.0rc3
v2.7.0rc2
v2.7.0rc1
v2.6.5
v2.6.4
v2.6.3
v2.6.2
v2.6.1
v2.6.0
v2.6.0rc4
v2.6.0rc3
v2.6.0rc2
v2.6.0rc1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/concerns/signature_verification.rb
+0
-10
app/controllers/concerns/signature_verification.rb
with
0 additions
and
10 deletions
+0
-10
app/controllers/concerns/signature_verification.rb
+
0
-
10
View file @
a00ce8c9
...
...
@@ -87,16 +87,6 @@ module SignatureVerification
end
.
join
(
"
\n
"
)
end
def
matches_time_window?
begin
time_sent
=
DateTime
.
httpdate
(
request
.
headers
[
'Date'
])
rescue
ArgumentError
return
false
end
(
Time
.
now
.
utc
-
time_sent
).
abs
<=
30
end
def
body_digest
"SHA-256=
#{
Digest
::
SHA256
.
base64digest
(
request_body
)
}
"
end
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets