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: |                 if self.args.no_zip: | ||||||
|                     margin = "DIR" |                     margin = "DIR" | ||||||
|                 else: |                 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: |             elif fn in hist: | ||||||
|                 margin = '<a href="{}.hist/{}">#{}</a>'.format( |                 margin = '<a href="{}.hist/{}">#{}</a>'.format( | ||||||
|                     base, html_escape(hist[fn][2], quot=True, crlf=True), hist[fn][0] |                     base, html_escape(hist[fn][2], quot=True, crlf=True), hist[fn][0] | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 ed
						ed