]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/UrlPath.cc
Fix parsing of malformed quoted squid.conf strings (#2239)
[thirdparty/squid.git] / src / acl / UrlPath.cc
CommitLineData
5dee515e 1/*
1f7b830e 2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
5dee515e 3 *
bbc27441
AJ
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
5dee515e 7 */
8
bbc27441
AJ
9/* DEBUG: section 28 Access Control */
10
582c2af2 11#include "squid.h"
4eac3407 12#include "acl/FilledChecklist.h"
602d9612 13#include "acl/UrlPath.h"
a2ac85d9 14#include "HttpRequest.h"
5dee515e 15
16int
8319d478 17Acl::UrlPathCheck::match(ACLChecklist * const ch)
5dee515e 18{
8319d478 19 const auto checklist = Filled(ch);
ff60b102 20 auto urlPath = checklist->request->url.path();
8319d478 21
ff60b102 22 if (urlPath.isEmpty())
7e56b602
AJ
23 return -1;
24
ff60b102 25 return data->match(urlPath.c_str());
5dee515e 26}