mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	markdown: Add missing None check in InlineInterestingLinkProcessor.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							eb9957aa35
						
					
				
				
					commit
					d01c99d2ee
				
			| @@ -1242,7 +1242,7 @@ class InlineInterestingLinkProcessor(markdown.treeprocessors.Treeprocessor): | ||||
|                 parsed_url = urllib.parse.urlsplit(urllib.parse.urljoin("/", url)) | ||||
|                 host = parsed_url.netloc | ||||
|  | ||||
|                 if host != "" and host != self.md.zulip_realm.host: | ||||
|                 if host != "" and (self.md.zulip_realm is None or host != self.md.zulip_realm.host): | ||||
|                     continue | ||||
|  | ||||
|                 if not parsed_url.path.startswith("/user_uploads/"): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user