From 88a560b8c838ea15ce1bd55cac64514e21100bc7 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 22 2015 07:37:45 +0000 Subject: Fix bug in filter_img_src introduced with its moved to the backend library --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index f094e9e..8843f05 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -2285,8 +2285,8 @@ def filter_img_src(name, value): return True if name == 'src': p = urlparse.urlparse(value) - return (not p.netloc) \ - or p.netloc == urlparse.urlparse(APP.config['APP_URL']).netloc + return (not p.netloc) or p.netloc == urlparse.urlparse( + pagure.APP.config['APP_URL']).netloc return False