diff options
author | Martin Green <martin.speleo@gmail.com> | 2011-08-08 13:11:57 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2011-08-08 13:11:57 +0100 |
commit | 59e7c4d5dfd38aa666f06f5104a9ceaa309818fd (patch) | |
tree | 050a691b4238ce8122e9a96c745b5c62bc4ebef3 /flatpages | |
parent | 0b5e57b85e6e13f0bbd9a8c0321fad901ca283d1 (diff) | |
download | troggle-59e7c4d5dfd38aa666f06f5104a9ceaa309818fd.tar.gz troggle-59e7c4d5dfd38aa666f06f5104a9ceaa309818fd.tar.bz2 troggle-59e7c4d5dfd38aa666f06f5104a9ceaa309818fd.zip |
Bug fix
Diffstat (limited to 'flatpages')
-rw-r--r-- | flatpages/views.py | 6 |
1 files 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('(.*)<ul\s+id="links">', body, re.DOTALL + re.IGNORECASE) + if linksmatch: + body, = linksmatch.groups() if re.search(r"iso-8859-1", html): - linksmatch = re.match('(.*)<ul id="links">', body, re.DOTALL + re.IGNORECASE) - if linksmatch: - body, = linksmatch.groups() body = unicode(body, "iso-8859-1") else: return HttpResponse("Page could not be split into header and body") |