Status: Accepted
Owner: ruslan.savchenko
Labels: Type-Defect Priority-Medium Component-Web
New issue 81 by ruslan.savchenko: Links to smbshares don't work well in
Opera
http://code.google.com/p/uguu/issues/detail?id=81
We have 'file://///' at the beginning. Opera doesn't converge it
to 'file://', so this has to be done by the code. The following patch fixes
the issue, but maybe we should instead give 'file://///' for the Firefox
only.
diff -r ae120fdfecbb webuguu/common.py
--- a/webuguu/common.py Sun Sep 19 19:31:26 2010 +0400
+++ b/webuguu/common.py Sun Nov 11 13:30:47 2012 +0400
@@ -104,19 +104,22 @@
if protocol == "smb":
if re.search(r'(?u)win(dows|nt|32)',
string.lower(request.META['HTTP_USER_AGENT']), re.UNICODE):
+ if re.search(r'(?u)Opera', request.META['HTTP_USER_AGENT'],
re.UNICODE):
+ return "file://"
return "file://///"
return protocol + "://"