Skip to content

Commit

Permalink
Prefer rawurlencode() to urlencode() to get %20 and not + for spaces
Browse files Browse the repository at this point in the history
(e.g. ftp compatibility)
Corrected the comments: for now, it can treat only url chunks


git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@207313 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
bertrand Gugger committed Feb 17, 2006
1 parent 874cc0f commit c6216e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Text/Wiki/Render.php
Expand Up @@ -190,14 +190,14 @@ function formatConf($format, $key)
* 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);
}

/**
Expand Down

0 comments on commit c6216e9

Please sign in to comment.