diff --git a/flatpages/views.py b/flatpages/views.py index 3357e64..05405de 100644 --- a/flatpages/views.py +++ b/flatpages/views.py @@ -56,17 +56,17 @@ def flatpage(request, path): if path.endswith(".htm") or path.endswith(".html"): html = o.read() - m = re.search(r"(.*).*]*>(.*)", html, re.DOTALL) + m = re.search(r"(.*).*]*>(.*)", html, re.DOTALL + re.IGNORECASE) if m: head, body = m.groups() else: return HttpResponse(html + "Page could not be split into header and body") - m = re.search(r"(.*)", head, re.DOTALL) + m = re.search(r"(.*)", head, re.DOTALL + re.IGNORECASE) if m: title, = m.groups() else: title = "" - linksmatch = re.match('(.*)