From 5ee6440a21d1251621e8146e52218892c03ebfa5 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Fri, 1 Jan 2010 21:14:40 +0100 Subject: [PATCH] add user agent string for opera mobile --- pyweb/mumble/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyweb/mumble/views.py b/pyweb/mumble/views.py index f04fbd9..dff6f6a 100644 --- a/pyweb/mumble/views.py +++ b/pyweb/mumble/views.py @@ -36,6 +36,7 @@ from mmobjects import * def redir( request ): """ Redirect to the servers list. """ if request.META['HTTP_USER_AGENT'].startswith( 'BlackBerry' ) or \ + "Opera Mobi" in request.META['HTTP_USER_AGENT'] or \ "Opera Mini" in request.META['HTTP_USER_AGENT'] or \ "Windows CE" in request.META['HTTP_USER_AGENT'] or \ "MIDP" in request.META['HTTP_USER_AGENT'] or \