1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

[images] check if temporary file is readable. Refs #257

This commit is contained in:
Witold Filipczyk 2023-08-11 13:52:41 +02:00
parent cce12632c2
commit 82431263ed

View File

@ -1654,7 +1654,7 @@ tp_open(struct type_query *type_query)
if (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);
if (handler) {