diff options
author | Matt Holt <[email protected]> | 2024-04-13 19:08:20 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-13 19:08:20 -0400 |
commit | f698ad13da8d1e72bae33b6e9b9bb0a0fafaa0a6 (patch) | |
tree | a38d503777d879faa8edbf5dc3c15757e2b12930 /modules/caddyhttp/fileserver/browse.html | |
parent | 61fecb130a2b3e5dc93b7656172c066d8701af7d (diff) | |
parent | dc9dd2e4b3e266cb1267f672e3bcfd50c67cc3d4 (diff) | |
download | caddy-zerossl.tar.gz caddy-zerossl.zip |
Merge branch 'master' into zerosslzerossl
Diffstat (limited to 'modules/caddyhttp/fileserver/browse.html')
-rw-r--r-- | modules/caddyhttp/fileserver/browse.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/browse.html b/modules/caddyhttp/fileserver/browse.html index 484d90020..fdc4b9c3c 100644 --- a/modules/caddyhttp/fileserver/browse.html +++ b/modules/caddyhttp/fileserver/browse.html @@ -21,7 +21,7 @@ </svg> {{- else if .HasExt ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tiff" ".bmp" ".heif" ".heic" ".svg"}} {{- if eq .Tpl.Layout "grid"}} - <img loading="lazy" src="{{html .Name}}"> + <img loading="lazy" src="{{.Name | replace "#" "%23" | replace "?" "%3f" | html}}"> {{- else}} <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-photo" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |