mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Only show warning when file that is filtered exists
This commit is contained in:
		
							parent
							
								
									f33136e7e1
								
							
						
					
					
						commit
						c0f2581f55
					
				@ -269,7 +269,8 @@ class HTMLInput(InputFormatPlugin):
 | 
				
			|||||||
        q = os.path.normcase(get_long_path_name(link))
 | 
					        q = os.path.normcase(get_long_path_name(link))
 | 
				
			||||||
        if not q.startswith(self.root_dir_of_input):
 | 
					        if not q.startswith(self.root_dir_of_input):
 | 
				
			||||||
            if not self.opts.allow_local_files_outside_root:
 | 
					            if not self.opts.allow_local_files_outside_root:
 | 
				
			||||||
                self.log.warn('Not adding {} as it is outside the document root: {}'.format(q, self.root_dir_of_input))
 | 
					                if os.path.exists(q):
 | 
				
			||||||
 | 
					                    self.log.warn('Not adding {} as it is outside the document root: {}'.format(q, self.root_dir_of_input))
 | 
				
			||||||
                return None, None
 | 
					                return None, None
 | 
				
			||||||
        return link, frag
 | 
					        return link, frag
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user