Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/web/templates/adblockplus.org.conf.erb

Issue 29329011: Issue 3180 - Work around outlook URL rewrites (Closed)
Patch Set: Created Oct. 9, 2015, 1:16 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/web/templates/adblockplus.org.conf.erb
===================================================================
--- a/modules/web/templates/adblockplus.org.conf.erb
+++ b/modules/web/templates/adblockplus.org.conf.erb
@@ -250,6 +250,14 @@
}
location /verifyEmail
{
+ # Workaround for MS Outlook's behavior of re-encoding URLs;
+ # see https://issues.adblockplus.org/ticket/3180 for more information
+ if ($arg_email ~ (.*)%2540(.*)) {
+ set $email_user $1;
+ set $email_domain $2;
+ rewrite ^(.*)$ $1?email=$email_user%40$email_domain&signature=$arg_signature&product=$arg_product&lang=$arg_lang? redirect;
+ }
+
try_files $uri @proxied;
}
location /forum
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld