AuthPlain user parsing fix. #3833
commit934970207e23db2a3f2112de08a3b42d080fd23d
authorAndreas Gohr <andi@splitbrain.org>
Mon, 13 Feb 2023 15:35:00 +0000 (13 16:35 +0100)
committerAndreas Gohr <andi@splitbrain.org>
Mon, 13 Feb 2023 15:35:00 +0000 (13 16:35 +0100)
tree1e221ac7450efe1a558e2d434e3bb57464dbf617
parente1226e3d27c1ef9fe40e720bc2cfda427c9a4840
AuthPlain user parsing fix. #3833

This removes workarounds we had for old PCRE versions. All modern PHP
releases should be workable with the Regex we have.

If splitting the user line results in less than 5 results, we log an
error and pad the result for further use.
lib/plugins/authplain/_test/escaping.test.php
lib/plugins/authplain/auth.php