From df8747ebb6d7a8a4e8bdd10c0ddba00489eb3078 Mon Sep 17 00:00:00 2001 From: Sommerregen Date: Fri, 10 Feb 2017 14:35:31 +0100 Subject: [PATCH 1/2] :hotsprings: Fix error in getting the remote image size --- classes/ExternalLinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/ExternalLinks.php b/classes/ExternalLinks.php index 7b8e46c..d4c2fe8 100644 --- a/classes/ExternalLinks.php +++ b/classes/ExternalLinks.php @@ -322,7 +322,7 @@ protected function getRemoteImageSize($uri, $limit = -1) } // Open temporary file - $tmp = fopen($tmp_name, 'rb'); + $tmp = fopen($tmp_name, 'wb'); // Check which method we should use to get remote image sizes $allow_url_fopen = ini_get('allow_url_fopen') ? true : false; From 7d68b6a20c2c33a8cf482d660481d5c2b02982f5 Mon Sep 17 00:00:00 2001 From: Sommerregen Date: Fri, 10 Feb 2017 14:37:09 +0100 Subject: [PATCH 2/2] :maple_leaf: Version Update - Release v1.5.1 --- CHANGELOG.md | 6 ++++++ blueprints.yaml | 2 +- external_links.php | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65675d2..dd335a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.5.1 +## 02/10/2017 + +3. [](#bugfix) + * Fixed error in getting the remote image size + # v1.5.0 ## 02/09/2017 diff --git a/blueprints.yaml b/blueprints.yaml index ff87ed6..a8ef837 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: "External Links" -version: "1.5.0" +version: "1.5.1" description: "This plugin adds small icons to external and mailto links, informing users the link will take them to a new site or open their email client." icon: "external-link" author: diff --git a/external_links.php b/external_links.php index b028c28..eca935c 100644 --- a/external_links.php +++ b/external_links.php @@ -1,6 +1,6 @@ * @author Benjamin Regler * @copyright 2017, Benjamin Regler