]> git.pld-linux.org Git - packages/php-pear-HTTP.git/commitdiff
- assume outdated (if not true rediff)
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 28 Nov 2005 06:51:31 +0000 (06:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pear-HTTP-php.patch -> 1.2

php-pear-HTTP-php.patch [deleted file]

diff --git a/php-pear-HTTP-php.patch b/php-pear-HTTP-php.patch
deleted file mode 100644 (file)
index 1e2f4b2..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-diff -urbB HTTP-1.3.6.org/HTTP.php HTTP-1.3.6/HTTP.php
---- HTTP-1.3.6.org/HTTP.php    2005-05-17 13:03:04.000000000 +0200
-+++ HTTP-1.3.6/HTTP.php        2005-10-21 12:21:51.155385664 +0200
-@@ -118,7 +118,8 @@
-         $matches = array();
-         if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
-             foreach (explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']) as $lang) {
--                $lang = array_map('trim', explode(';', $lang));
-+                $tmp = explode(';', $lang);
-+                $lang = array_map('trim', $tmp);
-                 if (isset($lang[1])) {
-                     $l = strtolower($lang[0]);
-                     $q = (float) str_replace('q=', '', $lang[1]);
-@@ -134,11 +135,14 @@
-         if (count($matches)) {
-             asort($matches, SORT_NUMERIC);
--            return $supp[array_pop(array_keys($matches))];
-+            $tmp = array_keys($matches);
-+            return $supp[array_pop($tmp)];
-         }
-         
-         if (isset($_SERVER['REMOTE_HOST'])) {
--            $lang = strtolower(array_pop(explode('.', $_SERVER['REMOTE_HOST'])));
-+            $tmp = explode('.', $_SERVER['REMOTE_HOST']);
-+            $tmp = array_pop($tmp);
-+            $lang = strtolower($tmp);
-             if (isset($supp[$lang])) {
-                 return $supp[$lang];
-             }
-@@ -285,7 +289,8 @@
-                 return $url;
-             }
-             if (!empty($protocol)) {
--                $url = $protocol .':'. array_pop(explode(':', $url, 2));
-+                $tmp = explode(':', $url, 2);
-+                $url = $protocol .':'. array_pop($tmp);
-             }
-             if (!empty($port)) {
-                 $url = preg_replace('!^(([a-z0-9]+)://[^/:]+)(:[\d]+)?!i', 
This page took 0.028515 seconds and 4 git commands to generate.