From 89457a442ed0af2d6aa5169dac96c0d2eaa4bfdb Mon Sep 17 00:00:00 2001 From: zenden2k Date: Tue, 26 Mar 2019 12:25:41 +0300 Subject: [PATCH] Use HTTPS in funkyimg script, issue #298 --- Data/Scripts/funkyimg.nut | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Data/Scripts/funkyimg.nut b/Data/Scripts/funkyimg.nut index 26af3a6f..02b140ce 100644 --- a/Data/Scripts/funkyimg.nut +++ b/Data/Scripts/funkyimg.nut @@ -47,7 +47,7 @@ function reg_replace(str, pattern, replace_with) function UploadFile(FileName, options) { - nm.setUrl("http://funkyimg.com/upload/?fileapi" + random()); + nm.setUrl("https://funkyimg.com/upload/?fileapi" + random()); nm.addQueryParam("_images", ExtractFileName(FileName)); nm.addQueryParamFile("images",FileName, ExtractFileName(FileName),""); nm.addQueryParam("wmText", ""); @@ -63,7 +63,7 @@ function UploadFile(FileName, options) if ( jid != "" ) { local i = 0; while ( true ) { - local checkUrl = "http://funkyimg.com/upload/check/" + jid + "?_=" + random(); + local checkUrl = "https://funkyimg.com/upload/check/" + jid + "?_=" + random(); nm.doGet(checkUrl); data = nm.responseBody(); @@ -71,9 +71,9 @@ function UploadFile(FileName, options) if ( success == "true" || success == "True") { local thumbUrl = regex_simple(data, "\\[IMG\\](.+)\\[/IMG\\]", 0); - local directUrl = regex_simple(data, "http:\\/\\/funkyimg\\.com\\/i\\/([a-zA-Z0-9\\.]+)", 0); + local directUrl = regex_simple(data, "https:\\/\\/funkyimg\\.com\\/i\\/([a-zA-Z0-9\\.]+)", 0); if ( directUrl != "") { - options.setDirectUrl("http://funkyimg.com/i/" + directUrl); + options.setDirectUrl("https://funkyimg.com/i/" + directUrl); } options.setThumbUrl(thumbUrl); return 1;