6b37daf0b6
>Removing leading slashes in the url_encode() function is bad, because >they might be part of a password, but somebody else had apparently made >url_encode() do that. Here's a patch that stops url_encode() from >removing leading slashes, changes the encode_leading_slash code to >fit in with that policy, adds some comments that should dissuade folk >from removing leading slashes in the future, and fixes a bug where the >encode_leading_slash code was not decrementing len.