From: Jean-Marcel Flach Date: Wed, 15 Jul 2015 13:28:26 +0000 (+0200) Subject: Change decode - check order in path decoding X-Git-Tag: v2.4.0~500 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa16438298e077925bcffdffa5483fde98956ee8;p=icinga2 Change decode - check order in path decoding refs #9470 --- diff --git a/lib/base/url.cpp b/lib/base/url.cpp index c456d36de..c491dd35a 100644 --- a/lib/base/url.cpp +++ b/lib/base/url.cpp @@ -215,11 +215,11 @@ bool Url::ParsePath(const String& path) if (token.IsEmpty()) continue; - String decodedToken = Utility::UnescapeString(token); - - if (!ValidateToken(decodedToken, ACPATHSEGMENT)) + if (!ValidateToken(token, ACPATHSEGMENT)) return false; + String decodedToken = Utility::UnescapeString(token); + m_Path.push_back(decodedToken); }