Go to file
Thomas Lamprecht edfa93d963 auth: make realm regex safer to use
Return a quoted regex that is surrounded by a non-capturing group,
which makes it behave more like expected if used with anchors

I.e., previously a match like /^$valid_pmg_realm_regex$/ would look
like it must be an exact match, but actually only anchor the first
case at the start, the last case at the end and the others nowhere.
As concrete example /^foo|bar|baz$/ allows any string that starts with
foo, any string that ends with baz and any string that contains bar
somewhere, i.e. "foo" is accepted just like "foo123".

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-02-26 22:10:19 +01:00
debian d/control: update versioned dependency to libpmg-rs-perl 2025-02-26 19:22:44 +01:00
src auth: make realm regex safer to use 2025-02-26 22:10:19 +01:00
.gitignore gitignore: add rules for generated doc-files and source-packages 2024-10-03 16:38:08 +02:00
Makefile buildsys: fix setting version & release metadata for pmgcfg generation 2023-06-28 08:04:44 +02:00