mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-08 18:49:15 +00:00
cache_media: only touch() local file if it's writable
This commit is contained in:
@@ -1218,7 +1218,7 @@ class RSSUtils {
|
||||
if ($file_content && strlen($file_content) > MIN_CACHE_FILE_SIZE) {
|
||||
file_put_contents($local_filename, $file_content);
|
||||
}
|
||||
} else {
|
||||
} else if (is_writable($local_filename)) {
|
||||
touch($local_filename);
|
||||
}
|
||||
}
|
||||
@@ -1254,7 +1254,7 @@ class RSSUtils {
|
||||
if ($file_content && strlen($file_content) > MIN_CACHE_FILE_SIZE) {
|
||||
file_put_contents($local_filename, $file_content);
|
||||
}
|
||||
} else {
|
||||
} else if (is_writable($local_filename)) {
|
||||
touch($local_filename);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user