php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #22870 URL encode option to encode spaces as %20 instead of +
Submitted: 2003-03-25 04:15 UTC Modified: 2003-03-25 04:18 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: belial at redbrick dot dcu dot ie Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.3.0 OS: Linux 2.2 Kernel
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: belial at redbrick dot dcu dot ie
New email:
PHP Version: OS:

 

 [2003-03-25 04:15 UTC] belial at redbrick dot dcu dot ie
The urlencode function from the manual does "Returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs."

When working on a local file system converting spaces in filenames to %20 for passing to separate programs is favourable to the conversion to a plus sign. Either a change of functionality to convert spaces to %20 instead of +, or an option to specify the behaviour would be nice.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-25 04:18 UTC] moriyoshi@php.net
Use rawurlencode()

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 10:01:32 2024 UTC