From 4b8952e438da8e57d6442a0b7451dac8060f154b Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Mon, 23 Aug 2021 09:35:03 +0100 Subject: Use more URL-Encoding when sending API requests. --- src/StringUtils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/StringUtils.h') diff --git a/src/StringUtils.h b/src/StringUtils.h index 94e44c3f6..cd232bb68 100644 --- a/src/StringUtils.h +++ b/src/StringUtils.h @@ -90,6 +90,9 @@ extern size_t RateCompareString(const AString & s1, const AString & s2); /** Replaces each occurence of iNeedle in iHayStack with iReplaceWith */ extern void ReplaceString(AString & iHayStack, const AString & iNeedle, const AString & iReplaceWith); // tolua_export +/** Replaces each occurence of iNeedle in iHayStack with iReplaceWith, after URL-encoding iReplaceWith */ +extern void ReplaceURL(AString & iHayStack, const AString & iNeedle, const AString & iReplaceWith); + /** Converts a stream of BE shorts into UTF-8 string; returns a_UTF8. */ extern AString & RawBEToUTF8(const char * a_RawData, size_t a_NumShorts, AString & a_UTF8); -- cgit v1.2.3