| Index: puppet/modules/adblockplusorg/files/adblockplus.org |
| =================================================================== |
| --- a/puppet/modules/adblockplusorg/files/adblockplus.org |
| +++ b/puppet/modules/adblockplusorg/files/adblockplus.org |
| @@ -38,6 +38,9 @@ |
| if ($http_user_agent ~ \bAndroid\s.*\bAppleWebKit/\d+) { |
| set $user_agent "android"; |
| } |
| + if ($http_user_agent ~ \bYaBrowser/\d+) { |
| + set $user_agent "yandex-browser"; |
| + } |
| if ($http_user_agent ~ \bMaxthon/\d+) { |
| set $user_agent "maxthon"; |
| } |
| @@ -63,7 +66,7 @@ |
| } |
| set $static_uri $uri; |
| - if ($uri ~ ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer|safari|maxthon)/?$) { |
| + if ($uri ~ ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer|safari|yandex-browser|maxthon)/?$) { |
| set $static_uri "/$1/"; |
| set $platform $3; |
| } |
| @@ -79,7 +82,7 @@ |
| rewrite ^ /static$static_uri?platform=$platform&user_agent=$user_agent last; |
| } |
| - rewrite ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer|safari|maxthon)/?$ /index.php?p=$1&platform=$3&user_agent=$user_agent last; |
| + rewrite ^/(\w\w(_\w\w)?)/(firefox|chrome|opera|android|internet-explorer|safari|yandex-browser|maxthon)/?$ /index.php?p=$1&platform=$3&user_agent=$user_agent last; |
| rewrite ^/(.*) /index.php?p=$1 last; |
| } |