mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
add nofollow to zip links
This commit is contained in:
parent
87ef50d384
commit
707a940399
|
@ -3491,7 +3491,9 @@ class HttpCli(object):
|
|||
if self.args.no_zip:
|
||||
margin = "DIR"
|
||||
else:
|
||||
margin = '<a href="{}?zip">zip</a>'.format(quotep(href))
|
||||
margin = '<a href="{}?zip" rel="nofollow">zip</a>'.format(
|
||||
quotep(href)
|
||||
)
|
||||
elif fn in hist:
|
||||
margin = '<a href="{}.hist/{}">#{}</a>'.format(
|
||||
base, html_escape(hist[fn][2], quot=True, crlf=True), hist[fn][0]
|
||||
|
|
Loading…
Reference in a new issue