diff --git a/qutebrowser/browser/network/filescheme.py b/qutebrowser/browser/network/filescheme.py index bf4133cb0..3ec6bf7ec 100644 --- a/qutebrowser/browser/network/filescheme.py +++ b/qutebrowser/browser/network/filescheme.py @@ -102,7 +102,7 @@ class FileSchemeHandler(schemehandler.SchemeHandler): A QNetworkReply. """ urlstring = request.url().toLocalFile() - if os.path.isdir(urlstring): + if os.path.isdir(urlstring) and os.access(urlstring, os.R_OK): data = dirbrowser(urlstring) return networkreply.FixedDataNetworkReply( request, data, 'text/html', self.parent())