[www-doc] [Git][VideoLAN.org/websites][master] Don't serve 64bits to WinXP users

Hugo Beauzée-Luyssen gitlab at videolan.org
Wed Feb 28 15:31:01 CET 2018


Hugo Beauzée-Luyssen pushed to branch master at VideoLAN organization / websites


Commits:
ec45e259 by Hugo Beauzée-Luyssen at 2018-02-28T15:32:36+01:00
Don't serve 64bits to WinXP users

- - - - -


1 changed file:

- www.videolan.org/include/os-specific.php


Changes:

=====================================
www.videolan.org/include/os-specific.php
=====================================
--- a/www.videolan.org/include/os-specific.php
+++ b/www.videolan.org/include/os-specific.php
@@ -39,14 +39,16 @@ function replaceDLinfos( $downloadButton = "#downloadButton" )
         var OS="windows"; //Default
 
        if (navigator.appVersion.indexOf("Win")!=-1) {
-           if (navigator.userAgent.indexOf('Win64')>-1 ||
-               navigator.platform=='Win64' ||
-               navigator.userAgent.indexOf('x86_64')>-1 ||
-               navigator.userAgent.indexOf('x86_64')>-1 ||
-               navigator.userAgent.indexOf('amd64')>-1 ||
-               navigator.userAgent.indexOf('AMD64')>-1 ||
-               navigator.userAgent.indexOf('WOW64')>-1
-           )
+           if (navigator.userAgent.indexOf('Windows NT 5.0') == -1 &&
+               navigator.userAgent.indexOf('Windows NT 5.1') == -1 &&
+                 (navigator.userAgent.indexOf('Win64')>-1 ||
+                   navigator.platform=='Win64' ||
+                   navigator.userAgent.indexOf('x86_64')>-1 ||
+                   navigator.userAgent.indexOf('x86_64')>-1 ||
+                   navigator.userAgent.indexOf('amd64')>-1 ||
+                   navigator.userAgent.indexOf('AMD64')>-1 ||
+                   navigator.userAgent.indexOf('WOW64')>-1
+           ))
            OS="windows64";
          else
            OS="windows";



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/commit/ec45e259285edfca5612a8601e9fd8297d8e814c

---
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/commit/ec45e259285edfca5612a8601e9fd8297d8e814c
You're receiving this email because of your account on code.videolan.org.


More information about the www-doc mailing list