yola / djstopie Goto Github PK
View Code? Open in Web Editor NEWRedirect misbehaved versions of IE to an error page.
Redirect misbehaved versions of IE to an error page.
This is a bit of a bizarre issue brought up by Jen in CS:
If a user puts a link to SiteBuilder in an Excel document (it could happen in other Office apps, but haven't verified), we send them to the "Browser Unsupported" page even if it is opening in Chrome or Firefox. I was doing a bit of digging and for some reason, the initial request to SiteBuilder after the user has clicked the link, identifies itself as IE7, even though the website is being opened in Chrome or Firefox.
It looks like there's some discovery happening at first. Look at the end of the user agent. It has ms-office
in it.
Here's the Apache logs from a click from Excel:
Opening in Chrome from Excel:
50.131.200.255 - - [18/Jul/2014:20:15:59 +0000] "OPTIONS / HTTP/1.1" 302 388 "-" "Microsoft Office Protocol Discovery"
50.131.200.255 - - [18/Jul/2014:20:16:00 +0000] "GET / HTTP/1.1" 302 407 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MDDC; Media Center PC 6.0; SLCC2; ms-office)"
50.131.200.255 - - [18/Jul/2014:20:16:01 +0000] "GET /ide/unsupported-browser.html HTTP/1.1" 200 752 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MDDC; Media Center PC 6.0; SLCC2; ms-office)"
50.131.200.255 - - [18/Jul/2014:20:16:02 +0000] "GET /ide/unsupported-browser.html HTTP/1.1" 200 751 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
Opening in Firefox from Excel:
50.131.200.255 - - [18/Jul/2014:20:19:11 +0000] "OPTIONS / HTTP/1.1" 302 388 "-" "Microsoft Office Protocol Discovery"
50.131.200.255 - - [18/Jul/2014:20:19:13 +0000] "GET / HTTP/1.1" 302 407 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MDDC; Media Center PC 6.0; SLCC2; ms-office)"
50.131.200.255 - - [18/Jul/2014:20:19:14 +0000] "GET /ide/unsupported-browser.html HTTP/1.1" 200 751 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MDDC; Media Center PC 6.0; SLCC2; ms-office)"
50.131.200.255 - - [18/Jul/2014:20:19:15 +0000] "GET /ide/unsupported-browser.html HTTP/1.1" 200 753 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"
216.246.93.163 - - [18/Jul/2014:20:19:16 +0000] "GET /ide/css/cf353345.error.css HTTP/1.1" 304 196 "http://sitebuilder.qa.yola.net/ide/unsupported-browser.html" "Akamai Edge"
50.131.200.255 - - [18/Jul/2014:20:19:17 +0000] "GET /favicon.ico HTTP/1.1" 404 781 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"
50.131.200.255 - - [18/Jul/2014:20:19:18 +0000] "GET /favicon.ico HTTP/1.1" 404 781 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"
@imorrison, I'm assuming that you don't want to maintain this. Could you add the yola user as an owner to the package in pypi?
The form is here: https://pypi.python.org/pypi?:action=role_form&package_name=djstopie
is cute and whatnot. But leaves me cold.
We can do better.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.