UrlEncode() methods from core/misc.h are now thread safe

This commit is contained in:
2021-06-23 17:04:07 +02:00
parent 99df807095
commit 2c5062ba22
3 changed files with 104 additions and 76 deletions

View File

@@ -41,14 +41,13 @@ namespace Winix
namespace TemplatesFunctions
{
static std::string urlencode_tmp;
// not thread safe
static std::string qencode_tmp;
void fil_urlencode(Info & i)
{
UrlEncode(i.in.Str(), urlencode_tmp);
i.out << R(urlencode_tmp);
UrlEncode(i.in.Str(), i.out);
}