From aa16438298e077925bcffdffa5483fde98956ee8 Mon Sep 17 00:00:00 2001 From: Jean-Marcel Flach Date: Wed, 15 Jul 2015 15:28:26 +0200 Subject: [PATCH] Change decode - check order in path decoding refs #9470 --- lib/base/url.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }