Skip to content

Commit 1f8c12e

Browse files
Correct cspreport log path used in before_wiki (add leading slash)
1 parent 3d79fcc commit 1f8c12e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/moin/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def before_wiki():
317317
"""
318318
Setup environment for wiki requests, start timers.
319319
"""
320-
if request and (is_static_content(request.path) or request.path == "+cspreport/log"):
320+
if request and (is_static_content(request.path) or request.path == "/+cspreport/log"):
321321
logging.debug(f"skipping before_wiki for {request.path}")
322322
return
323323

0 commit comments

Comments
 (0)