| ... | ... | @@ -172,7 +172,7 @@ def render(token): |
| 172 | 172 | if head_html and (role or headers): |
| 173 | 173 | raise ValueError(f"authenticated route has HTML injection: {host}") |
| 174 | 174 | for request, markup in head_html.items(): |
| 175 | | if not re.fullmatch(r"/[A-Za-z0-9/._-]*", request) or not markup: |
| 175 | if not re.fullmatch(r"/[A-Za-z0-9/._*-]*", request) or not markup: |
| 176 | 176 | raise ValueError(f"invalid HTML injection: {host} {request}") |
| 177 | 177 | for request, path in assets.get("files", {}).items(): |
| 178 | 178 | if not request.startswith("/") or " " in request or "\n" in request: |