Mercurial > hg > orthanc
changeset 5285:bb07c12e3472
re-enabled the old NormalizeIdentifier code
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 24 Apr 2023 18:11:13 +0200 |
parents | 56cd3444a2d8 |
children | 28f0e38e4082 |
files | OrthancServer/Sources/ServerToolbox.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerToolbox.cpp Mon Apr 24 18:04:07 2023 +0200 +++ b/OrthancServer/Sources/ServerToolbox.cpp Mon Apr 24 18:11:13 2023 +0200 @@ -243,14 +243,15 @@ { t.push_back(' '); // These characters might break wildcard queries in SQL } - else if (!iscntrl(value[i]) && + else if (isascii(value[i]) && + !iscntrl(value[i]) && (!isspace(value[i]) || value[i] == ' ')) { t.push_back(value[i]); } } - t = Toolbox::ToUpperCaseWithAccents(t); + t = Toolbox::ToUpperCase(t); #endif return Toolbox::StripSpaces(t);