mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[images] check if temporary file is readable. Refs #257
This commit is contained in:
parent
cce12632c2
commit
82431263ed
@ -1654,7 +1654,7 @@ tp_open(struct type_query *type_query)
|
|||||||
if (url) {
|
if (url) {
|
||||||
char *filename = check_url_tempfiles(url);
|
char *filename = check_url_tempfiles(url);
|
||||||
|
|
||||||
if (filename) {
|
if (filename && file_can_read(filename)) {
|
||||||
char *handler = subst_file(type_query->external_handler, filename, filename);
|
char *handler = subst_file(type_query->external_handler, filename, filename);
|
||||||
|
|
||||||
if (handler) {
|
if (handler) {
|
||||||
|
Loading…
Reference in New Issue
Block a user