cvs: pear /Text_Wiki/Text/Wiki Render.php
| From: | bertrand Gugger | Date: | Fri, 17 Feb 2006 05:42:55 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text/Wiki Render.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38298@lists.php.net to get a copy of this message | ||
toggg Fri Feb 17 05:42:55 2006 UTC
Modified files:
/pear/Text_Wiki/Text/Wiki Render.php
Log:
Prefer rawurlencode() to urlencode() to get %20 and not + for spaces
(e.g. ftp compatibility)
Corrected the comments: for now, it can treat only url chunks
http://cvs.php.net/viewcvs.cgi/pear/Text_Wiki/Text/Wiki/Render.php?r1=1.8&r2=1.9&diff_format=u
Index: pear/Text_Wiki/Text/Wiki/Render.php
diff -u pear/Text_Wiki/Text/Wiki/Render.php:1.8 pear/Text_Wiki/Text/Wiki/Render.php:1.9
--- pear/Text_Wiki/Text/Wiki/Render.php:1.8 Sat Feb 11 06:58:39 2006
+++ pear/Text_Wiki/Text/Wiki/Render.php Fri Feb 17 05:42:55 2006
@@ -9,7 +9,7 @@
* @package Text_Wiki
* @author Paul M. Jones <pmjones@php.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: Render.php,v 1.8 2006/02/11 06:58:39 toggg Exp $
+ * @version CVS: $Id: Render.php,v 1.9 2006/02/17 05:42:55 toggg Exp $
* @link http://pear.php.net/package/Text_Wiki
*/
@@ -190,14 +190,14 @@
* Default method to render url
*
* @access public
- * @param string $urlChunk the url or a part of it to render
+ * @param string $urlChunk a part of an url to render
* @return rendered url
*
*/
function urlEncode($urlChunk)
{
- return urlencode($urlChunk);
+ return rawurlencode($urlChunk);
}
/**