2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 22:17:06 +00:00
This commit is contained in:
2025-01-28 20:54:12 +00:00
parent e39760590f
commit cf89b1b67f

View File

@@ -509,8 +509,8 @@ def editexpopage(request, path):
write_and_commit([(filepath, result, "utf-8")], f"{change_message} - online edit of {path}", editor) write_and_commit([(filepath, result, "utf-8")], f"{change_message} - online edit of {path}", editor)
except WriteAndCommitError as e: except WriteAndCommitError as e:
return render(request, "errors/generic.html", {"message": e.message}) return render(request, "errors/generic.html", {"message": e.message})
print(f"Returning response now, which should set cookie on client browser") print(f"Returning response now, which should set cookie on client browser")
return edit_response return edit_response
else: else:
if filefound: if filefound:
m = re.search(r"<title>(.*)</title>", head, re.DOTALL + re.IGNORECASE) m = re.search(r"<title>(.*)</title>", head, re.DOTALL + re.IGNORECASE)