summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-17 21:55:10 +0300
committerAndrew Dolgov <[email protected]>2021-02-17 21:55:10 +0300
commitcdc427433a9a2b6bf2583d7ee93d24bcbae9913c (patch)
treeb3d658e84bf0681f8711cbd28abd5d658f36c669
parent8190934bc5ad10589b0565db414b2585e569bb3e (diff)
parent03f89dbedf622a6dc3eef68b33422d2729b73443 (diff)
Merge branch 'master' of git.tt-rss.org:fox/ttrss-api-resize
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 83edefd..14d8350 100644
--- a/init.php
+++ b/init.php
@@ -208,7 +208,7 @@ class Api_Resize_Media extends Plugin {
}
private function rewrite_url_if_needed($url, $width, $force_stamp = false) {
- if (strpos($url, "data:") !== 0) {
+ if (strpos($url, "data:") !== 0 && $width > 0) {
$local_filename = sha1($url) . "-$width";