From dbc8063f66201f8f31fe8e958331b32a7c632440 Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Tue, 6 Jun 2017 21:26:46 +0200 Subject: [PATCH] Thanks to Ponce I have discovered and fixed a bug Hopefully --- uploaders/customuploader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uploaders/customuploader.cpp b/uploaders/customuploader.cpp index 9ea4c44..e81ac6f 100644 --- a/uploaders/customuploader.cpp +++ b/uploaders/customuploader.cpp @@ -171,7 +171,7 @@ QJsonObject recurseAndReplace(QJsonObject &body, QByteArray &data, QString conte } else if (v.isString()) { QString str = v.toString(); if (str.startsWith("/") && str.endsWith("/")) { - o.insert(s, str.replace("%image", data).replace("%contenttype", contentType)); + o.insert(s, str.mid(1, str.length() - 2).replace("%image", data).replace("%contenttype", contentType)); } else o.insert(s, v); } else