##// END OF EJS Templates
tweens: check url sanity before vcs detection tween.
marcink -
r3537:a46ee1c9 default
parent child Browse files
Show More
@@ -92,6 +92,7 b' def junk_form_data_detector(request):'
92
92
93 def sanity_check_factory(handler, registry):
93 def sanity_check_factory(handler, registry):
94 def sanity_check(request):
94 def sanity_check(request):
95 log.debug('Checking URL sanity')
95 try:
96 try:
96 junk_encoding_detector(request)
97 junk_encoding_detector(request)
97 bad_url_data_detector(request)
98 bad_url_data_detector(request)
@@ -113,5 +114,5 b' def includeme(config):'
113 'pyramid.events.NewRequest')
114 'pyramid.events.NewRequest')
114 config.add_subscriber('rhodecode.subscribers.add_request_user_context',
115 config.add_subscriber('rhodecode.subscribers.add_request_user_context',
115 'pyramid.events.ContextFound')
116 'pyramid.events.ContextFound')
117 config.add_tween('rhodecode.tweens.vcs_detection_tween_factory')
116 config.add_tween('rhodecode.tweens.sanity_check_factory')
118 config.add_tween('rhodecode.tweens.sanity_check_factory')
117 config.add_tween('rhodecode.tweens.vcs_detection_tween_factory')
General Comments 0
You need to be logged in to leave comments. Login now