Comments (0)

Files changed (2)

File browser.py Modified

View file
  • Ignore whitespace
  • Hide word diff
         if not destination:
             destination = download_path
         
+        url = self._filter_url(url)        
         filename, filesize = self._extract_file_infos(url)
         if filename is '':
             filename = url.split('/')[-1]
         if content_type not in self.allowed_content_types:
             self.allowed_content_types.append(content_type)
     
-        
     def save_history(self, file_name):
         """Save history in a file"""
         with open(file_name, 'w') as f:

File response.py Modified

View file
  • Ignore whitespace
  • Hide word diff
         if re.search('://', url):
             return url
         else:
+            if re.search('mailto:', url):
+                return url
             if url == '':
                 return self.root_url
             if url[0] == '/':