[Slim-Checkins] r10210 - /branches/6.5/server/Slim/Networking/Async/HTTP.pm

andy at svn.slimdevices.com andy at svn.slimdevices.com
Thu Oct 5 09:35:39 PDT 2006


Author: andy
Date: Thu Oct  5 09:35:38 2006
New Revision: 10210

URL: http://svn.slimdevices.com?rev=10210&view=rev
Log:
URLs such as httpt:// were getting past this regex, oops

Modified:
    branches/6.5/server/Slim/Networking/Async/HTTP.pm

Modified: branches/6.5/server/Slim/Networking/Async/HTTP.pm
URL: http://svn.slimdevices.com/branches/6.5/server/Slim/Networking/Async/HTTP.pm?rev=10210&r1=10209&r2=10210&view=diff
==============================================================================
--- branches/6.5/server/Slim/Networking/Async/HTTP.pm (original)
+++ branches/6.5/server/Slim/Networking/Async/HTTP.pm Thu Oct  5 09:35:38 2006
@@ -125,7 +125,7 @@
 		HTTP::Request->new( $args->{method} => $args->{url} )
 	);
 	
-	if ( $self->request->uri !~ /^http/i ) {
+	if ( $self->request->uri !~ /^http:/i ) {
 		my $error = 'Cannot request non-HTTP URL ' . $self->request->uri;
 		return $self->_http_error( $error, $args );
 	}



More information about the checkins mailing list