##// END OF EJS Templates
templates: use safer way to extract user_agent from request....
marcink -
r2094:5efe3020 default
parent child Browse files
Show More
@@ -29,7 +29,7 b" c.template_context['default_user'] = {"
29 <title>${self.title()}</title>
29 <title>${self.title()}</title>
30 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
30 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
31
31
32 % if 'safari' in request.user_agent.lower():
32 % if 'safari' in (request.user_agent or '').lower():
33 <meta name="referrer" content="origin">
33 <meta name="referrer" content="origin">
34 % else:
34 % else:
35 <meta name="referrer" content="origin-when-cross-origin">
35 <meta name="referrer" content="origin-when-cross-origin">
General Comments 0
You need to be logged in to leave comments. Login now