diff --git a/core/views/expo.py b/core/views/expo.py index 9f69ccb..bf54f61 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -179,12 +179,11 @@ def expowebpage(request, expowebpath, path): (title,) = m.groups() else: title = "" - m = re.search(r"^]*)noedit", head, re.DOTALL + re.IGNORECASE) + m = re.search(r"noedit", head, re.DOTALL + re.IGNORECASE) if m: editable = False else: editable = os.access(expowebpath / path, os.W_OK) # are file permissions writeable? - has_menu = False menumatch = re.match(r'(.*)