tweens: check url sanity before vcs detection tween.
This commit is contained in:
parent
ba0940ba94
commit
a1b36af5a6
1 changed files with 2 additions and 1 deletions
|
|
@ -92,6 +92,7 @@ def junk_form_data_detector(request):
|
|||
|
||||
def sanity_check_factory(handler, registry):
|
||||
def sanity_check(request):
|
||||
log.debug('Checking URL sanity')
|
||||
try:
|
||||
junk_encoding_detector(request)
|
||||
bad_url_data_detector(request)
|
||||
|
|
@ -113,5 +114,5 @@ def includeme(config):
|
|||
'pyramid.events.NewRequest')
|
||||
config.add_subscriber('rhodecode.subscribers.add_request_user_context',
|
||||
'pyramid.events.ContextFound')
|
||||
config.add_tween('rhodecode.tweens.sanity_check_factory')
|
||||
config.add_tween('rhodecode.tweens.vcs_detection_tween_factory')
|
||||
config.add_tween('rhodecode.tweens.sanity_check_factory')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue