diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-08-02 13:41:12 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-08-02 13:41:12 +0300 |
commit | 6bca75b8772aa229bc1d7fcf547c639ef6b25ab8 (patch) | |
tree | 0dd5a9ff632a968d1dce0226eb0695b47e4627f0 /core | |
parent | 585eb534a9996448c8346002e150cf0283605f02 (diff) | |
download | troggle-6bca75b8772aa229bc1d7fcf547c639ef6b25ab8.tar.gz troggle-6bca75b8772aa229bc1d7fcf547c639ef6b25ab8.tar.bz2 troggle-6bca75b8772aa229bc1d7fcf547c639ef6b25ab8.zip |
NOEDIT fixed
Diffstat (limited to 'core')
-rw-r--r-- | core/views/expo.py | 3 |
1 files changed, 1 insertions, 2 deletions
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"^<meta([^>]*)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'(.*)<ul id="links">', body, re.DOTALL + re.IGNORECASE) if menumatch: |