mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +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
					
				
			
			
				
	
			
			
			
						parent
						
							eb9957aa35
						
					
				
				
					commit
					d01c99d2ee
				
			@@ -1242,7 +1242,7 @@ class InlineInterestingLinkProcessor(markdown.treeprocessors.Treeprocessor):
 | 
				
			|||||||
                parsed_url = urllib.parse.urlsplit(urllib.parse.urljoin("/", url))
 | 
					                parsed_url = urllib.parse.urlsplit(urllib.parse.urljoin("/", url))
 | 
				
			||||||
                host = parsed_url.netloc
 | 
					                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
 | 
					                    continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if not parsed_url.path.startswith("/user_uploads/"):
 | 
					                if not parsed_url.path.startswith("/user_uploads/"):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user