summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.cgi
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2026-05-27 16:08:15 +0200
committerJunio C Hamano <gitster@pobox.com>2026-05-28 05:20:15 +0900
commit58880c82feb460015153575dc02b9959e4d8a8a0 (patch)
treee598976e7ffe38b7eddc7a3276b9b17eac22b4af /gitweb/gitweb.cgi
parentee7ea4907ccef604f764df5e223640ad04192f6d (diff)
urlmatch: add url_normalize_pattern() helper
In a following commit, we will need to normalize a URL glob pattern (which may contain '*' in the host portion) and extract its component offsets (host, path, etc.) for separate matching. Let's export a dedicated helper function url_normalize_pattern() for that purpose. It works like url_normalize(), but passes allow_globs=true to the internal url_normalize_1(), so that '*' characters in the host are accepted rather than rejected. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.cgi')
0 files changed, 0 insertions, 0 deletions