# HG changeset patch # User Marcin Kuzminski # Date 2019-03-05 21:24:05 # Node ID a46ee1c9f7f00ccc4faa3be6ed0c8a6e299f1978 # Parent 5ee2c1152b16684bd94ca512bff7e94301af6674 tweens: check url sanity before vcs detection tween. diff --git a/rhodecode/tweens.py b/rhodecode/tweens.py --- a/rhodecode/tweens.py +++ b/rhodecode/tweens.py @@ -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.vcs_detection_tween_factory') config.add_tween('rhodecode.tweens.sanity_check_factory') - config.add_tween('rhodecode.tweens.vcs_detection_tween_factory')