Handle mail lookups with @ escaped.

This commit is contained in:
Justus Winter 2019-02-26 12:29:44 +01:00 committed by Justus Winter
parent edb7faf700
commit 2aed7802db
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386
1 changed files with 2 additions and 2 deletions

View File

@ -51,10 +51,10 @@ http {
}
# gpg --locate-key <EMAIL>
if ($args ~* "^op=get&options=mr&?search=(..)([^&]*)@([^&]*)") {
if ($args ~* "^op=get&options=mr&?search=(..)([^&]*)(@|%40)([^&]*)") {
set $dir $1;
set $local $2;
set $horst $3;
set $horst $4;
rewrite . /by-email/$dir/$local%40$horst;
}