[Slim-Checkins] r10029 - /trunk/server/Plugins/RadioIO/Plugin.pm

andy at svn.slimdevices.com andy at svn.slimdevices.com
Mon Sep 25 11:08:27 PDT 2006


Author: andy
Date: Mon Sep 25 11:08:26 2006
New Revision: 10029

URL: http://svn.slimdevices.com?rev=10029&view=rev
Log:
Bug 3663, escape RadioIO login URL

Modified:
    trunk/server/Plugins/RadioIO/Plugin.pm

Modified: trunk/server/Plugins/RadioIO/Plugin.pm
URL: http://svn.slimdevices.com/trunk/server/Plugins/RadioIO/Plugin.pm?rev=10029&r1=10028&r2=10029&view=diff
==============================================================================
--- trunk/server/Plugins/RadioIO/Plugin.pm (original)
+++ trunk/server/Plugins/RadioIO/Plugin.pm Mon Sep 25 11:08:26 2006
@@ -15,6 +15,7 @@
 use strict;
 
 use MIME::Base64;
+use URI::Escape qw(uri_escape);
 
 use Slim::Buttons::Common;
 use Slim::Buttons::XMLBrowser;
@@ -106,7 +107,7 @@
 	my $url = $FEED;
 	
 	if ( $username && $password ) {
-		$url .= "&membername=$username&pw=" . decode_base64( $password );
+		$url .= '&membername=' . uri_escape($username) . '&pw=' . uri_escape( decode_base64( $password ) );
 	}
 	
 	return $url;



More information about the checkins mailing list