www: 4483bf41: Use REQUEST_URI instead of DOCUMENT_URI....
markdoliner at pidgin.im
markdoliner at pidgin.im
Thu May 3 04:05:21 EDT 2012
----------------------------------------------------------------------
Revision: 4483bf417445828fae77a857acdbb0a21465a07d
Parent: bdffb6e9f23af322cac2f97f7b030b33357734a7
Author: markdoliner at pidgin.im
Date: 05/03/12 04:02:16
Branch: im.pidgin.www
URL: http://d.pidgin.im/viewmtn/revision/info/4483bf417445828fae77a857acdbb0a21465a07d
Changelog:
Use REQUEST_URI instead of DOCUMENT_URI. That latter doesn't seem to exist
in lighttpd
Changes against parent bdffb6e9f23af322cac2f97f7b030b33357734a7
patched htdocs/download/index.php
patched htdocs/download/linux/index.php
patched htdocs/download/mac/index.php
patched htdocs/download/source/index.php
patched htdocs/download/ubuntu/index.php
patched htdocs/download/windows/index.php
-------------- next part --------------
============================================================
--- htdocs/download/index.php 437a21c31c93ba37fc9b945997ba449f95b73aee
+++ htdocs/download/index.php 6ef7b818a3d5f31c0a9430201fb5275ff979c032
@@ -1,8 +1,8 @@
<?php
include($_SERVER['DOCUMENT_ROOT'] . "/../inc/downloads.inc");
- include($_SERVER['DOCUMENT_ROOT'] . "/../inc/blurb.downloaddetect.inc");
- $me = $download_type;
+ $exploded_uri = explode('/', $_SERVER['REQUEST_URI']);
+ $me = $exploded_uri[2];
$page['title'] = $download_types[$me]['title'];
$page['section'] = "Download";
============================================================
--- htdocs/download/source/index.php f47d39bab7c7bd1f34a43cc8c723a7a019a047e8
+++ htdocs/download/source/index.php 6ef7b818a3d5f31c0a9430201fb5275ff979c032
@@ -1,7 +1,7 @@
<?php
include($_SERVER['DOCUMENT_ROOT'] . "/../inc/downloads.inc");
- $exploded_uri = explode('/', $_SERVER['DOCUMENT_URI']);
+ $exploded_uri = explode('/', $_SERVER['REQUEST_URI']);
$me = $exploded_uri[2];
$page['title'] = $download_types[$me]['title'];
============================================================
--- htdocs/download/windows/index.php f47d39bab7c7bd1f34a43cc8c723a7a019a047e8
+++ htdocs/download/windows/index.php 6ef7b818a3d5f31c0a9430201fb5275ff979c032
@@ -1,7 +1,7 @@
<?php
include($_SERVER['DOCUMENT_ROOT'] . "/../inc/downloads.inc");
- $exploded_uri = explode('/', $_SERVER['DOCUMENT_URI']);
+ $exploded_uri = explode('/', $_SERVER['REQUEST_URI']);
$me = $exploded_uri[2];
$page['title'] = $download_types[$me]['title'];
============================================================
--- htdocs/download/mac/index.php f47d39bab7c7bd1f34a43cc8c723a7a019a047e8
+++ htdocs/download/mac/index.php 6ef7b818a3d5f31c0a9430201fb5275ff979c032
@@ -1,7 +1,7 @@
<?php
include($_SERVER['DOCUMENT_ROOT'] . "/../inc/downloads.inc");
- $exploded_uri = explode('/', $_SERVER['DOCUMENT_URI']);
+ $exploded_uri = explode('/', $_SERVER['REQUEST_URI']);
$me = $exploded_uri[2];
$page['title'] = $download_types[$me]['title'];
============================================================
--- htdocs/download/ubuntu/index.php f47d39bab7c7bd1f34a43cc8c723a7a019a047e8
+++ htdocs/download/ubuntu/index.php 6ef7b818a3d5f31c0a9430201fb5275ff979c032
@@ -1,7 +1,7 @@
<?php
include($_SERVER['DOCUMENT_ROOT'] . "/../inc/downloads.inc");
- $exploded_uri = explode('/', $_SERVER['DOCUMENT_URI']);
+ $exploded_uri = explode('/', $_SERVER['REQUEST_URI']);
$me = $exploded_uri[2];
$page['title'] = $download_types[$me]['title'];
============================================================
--- htdocs/download/linux/index.php f47d39bab7c7bd1f34a43cc8c723a7a019a047e8
+++ htdocs/download/linux/index.php 6ef7b818a3d5f31c0a9430201fb5275ff979c032
@@ -1,7 +1,7 @@
<?php
include($_SERVER['DOCUMENT_ROOT'] . "/../inc/downloads.inc");
- $exploded_uri = explode('/', $_SERVER['DOCUMENT_URI']);
+ $exploded_uri = explode('/', $_SERVER['REQUEST_URI']);
$me = $exploded_uri[2];
$page['title'] = $download_types[$me]['title'];
More information about the Commits
mailing list