From 9bb4696eb9882005fad424db60af8ca753af8220 Mon Sep 17 00:00:00 2001 From: Sergio Valor Martinez Date: Mon, 13 Feb 2023 12:33:11 +0100 Subject: [PATCH] El jailerID se convierte a minusculas para evitar problemas con jscore --- source/common/utils.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/common/utils.cpp b/source/common/utils.cpp index bbf2a0d..9497d3c 100644 --- a/source/common/utils.cpp +++ b/source/common/utils.cpp @@ -579,14 +579,12 @@ std::string boolToString(bool value) // Convierte una cadena a minusculas std::string toLower(std::string str) { - return str; - const char *original = str.c_str(); char *lower = (char *)malloc(str.size() + 1); for (int i = 0; i < str.size(); ++i) { char c = original[i]; - lower[i] = (c >= 65 || c <= 90) ? c + 32 : c; + lower[i] = (c >= 65 && c <= 90) ? c + 32 : c; } lower[str.size()] = 0; std::string nova(lower);