forked from expo/troggle
Bug fix
This commit is contained in:
parent
9878cf890d
commit
2145d1187e
@ -110,10 +110,10 @@ def editflatpage(request, path):
|
|||||||
if m:
|
if m:
|
||||||
filefound = True
|
filefound = True
|
||||||
head, body = m.groups()
|
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):
|
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")
|
body = unicode(body, "iso-8859-1")
|
||||||
else:
|
else:
|
||||||
return HttpResponse("Page could not be split into header and body")
|
return HttpResponse("Page could not be split into header and body")
|
||||||
|
Loading…
Reference in New Issue
Block a user