svn: /pear2/sandbox/SimpleChannelServer/trunk/src/SimpleChannelServer/ Categories.php

From: Date: Mon, 30 Nov 2009 15:00:50 +0000
Subject: svn: /pear2/sandbox/SimpleChannelServer/trunk/src/SimpleChannelServer/ Categories.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9053@lists.php.net to get a copy of this message
saltybeagle Mon, 30 Nov 2009 15:00:50 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=291499 Log: Handle special chars in channel name correctly. Changed paths: U pear2/sandbox/SimpleChannelServer/trunk/src/SimpleChannelServer/Categories.php Modified: pear2/sandbox/SimpleChannelServer/trunk/src/SimpleChannelServer/Categories.php =================================================================== --- pear2/sandbox/SimpleChannelServer/trunk/src/SimpleChannelServer/Categories.php 2009-11-30 14:48:24 UTC (rev 291498) +++ pear2/sandbox/SimpleChannelServer/trunk/src/SimpleChannelServer/Categories.php 2009-11-30 15:00:50 UTC (rev 291499) @@ -40,7 +40,7 @@ public function __construct(\pear2\Pyrus\Channel $channel) { $this->channel = $channel; - $rest = preg_replace('/https?:\/\/' . $channel->name . '/', + $rest = preg_replace('/https?:\/\/' . str_replace('/','\/', $channel->name) . '/', '', $channel->protocols->rest['REST1.0']->baseurl);

« previous php.pear.core (#9053) next »