mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 05:26:18 +01:00
Also refuse to open .app urls
This commit is contained in:
parent
85394a43a8
commit
2e50e22aa7
1 changed files with 1 additions and 1 deletions
|
|
@ -1161,7 +1161,7 @@ def safe_open_url(qurl):
|
|||
if qurl.scheme() in ('', 'file'):
|
||||
path = qurl.toLocalFile()
|
||||
ext = os.path.splitext(path)[-1].lower()[1:]
|
||||
if ext in ('exe', 'com', 'cmd', 'bat', 'sh', 'psh', 'ps1', 'vbs', 'js', 'wsf', 'vba', 'py', 'rb', 'pl'):
|
||||
if ext in ('exe', 'com', 'cmd', 'bat', 'sh', 'psh', 'ps1', 'vbs', 'js', 'wsf', 'vba', 'py', 'rb', 'pl', 'app'):
|
||||
prints('Refusing to open file:', path)
|
||||
return
|
||||
open_url(qurl)
|
||||
|
|
|
|||
Loading…
Reference in a new issue