From 59e7c4d5dfd38aa666f06f5104a9ceaa309818fd Mon Sep 17 00:00:00 2001 From: Martin Green Date: Mon, 8 Aug 2011 13:11:57 +0100 Subject: [PATCH] Bug fix --- flatpages/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flatpages/views.py b/flatpages/views.py index 05405de..f46488e 100644 --- a/flatpages/views.py +++ b/flatpages/views.py @@ -110,10 +110,10 @@ def editflatpage(request, path): if m: filefound = True head, body = m.groups() + linksmatch = re.match('(.*)', body, re.DOTALL + re.IGNORECASE) + if linksmatch: + body, = linksmatch.groups() if re.search(r"iso-8859-1", html): - linksmatch = re.match('(.*)