r33967 - in /trunk/libwww-perl/debian: changelog patches/sanitize-xxx_proxy.patch patches/series

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Fri Apr 24 16:39:50 UTC 2009


Author: dmn
Date: Fri Apr 24 16:39:44 2009
New Revision: 33967

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=33967
Log:
add sanitize-xxx_proxy.patch fixing LWP::UserAgent overreacting on any
xxx_proxy environment vvariables when env_proxy is set
Closes: #524515 -- LWP::UserAgent interprets every *_proxy environment
variable when env_proxy is given

Added:
    trunk/libwww-perl/debian/patches/sanitize-xxx_proxy.patch
Modified:
    trunk/libwww-perl/debian/changelog
    trunk/libwww-perl/debian/patches/series

Modified: trunk/libwww-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-perl/debian/changelog?rev=33967&op=diff
==============================================================================
--- trunk/libwww-perl/debian/changelog (original)
+++ trunk/libwww-perl/debian/changelog Fri Apr 24 16:39:44 2009
@@ -1,6 +1,10 @@
 libwww-perl (5.825-2) UNRELEASED; urgency=low
 
   *  refresh patches using "--no-timestamps --no-index -p ab"
+  * add sanitize-xxx_proxy.patch fixing LWP::UserAgent overreacting on any
+    xxx_proxy environment vvariables when env_proxy is set
+    Closes: #524515 -- LWP::UserAgent interprets every *_proxy environment
+                       variable when env_proxy is given
 
  -- Damyan Ivanov <dmn at debian.org>  Fri, 24 Apr 2009 19:20:05 +0300
 

Added: trunk/libwww-perl/debian/patches/sanitize-xxx_proxy.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-perl/debian/patches/sanitize-xxx_proxy.patch?rev=33967&op=file
==============================================================================
--- trunk/libwww-perl/debian/patches/sanitize-xxx_proxy.patch (added)
+++ trunk/libwww-perl/debian/patches/sanitize-xxx_proxy.patch Fri Apr 24 16:39:44 2009
@@ -1,0 +1,16 @@
+# Description: interpret *_PROXY environment variables only if '*' is a valid
+#              URI scheme. This avoid later barfing in proxy() when env_proxy
+#              is used and the user has some non-www related *_proxy variables
+#              set, for example X509_USER_PROXY
+# Debian-Bug: #524515
+--- a/lib/LWP/UserAgent.pm
++++ b/lib/LWP/UserAgent.pm
+@@ -923,7 +923,7 @@ sub env_proxy {
+ 	    $self->no_proxy(split(/\s*,\s*/, $v));
+ 	}
+ 	else {
+-	    $self->proxy($k, $v);
++	    $self->proxy($k, $v) if $k =~ /^$URI::scheme_re\z/;;
+ 	}
+     }
+ }

Modified: trunk/libwww-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-perl/debian/patches/series?rev=33967&op=diff
==============================================================================
--- trunk/libwww-perl/debian/patches/series (original)
+++ trunk/libwww-perl/debian/patches/series Fri Apr 24 16:39:44 2009
@@ -1,2 +1,3 @@
 fix_no_proxy_desc.patch
 fix_ua_ssl_deps.patch
+sanitize-xxx_proxy.patch




More information about the Pkg-perl-cvs-commits mailing list