Forum OpenACS Development: ns_urlencode broken?

Collapse
Posted by Malte Sussdorff on
Did anyone stumble upon the problem that ns_urlencode does not encode the "+" character with a "%2B" ?

If your files are name like "?file_name=mytest+malte.gif", the encoding will do nothing about the "+" sign. But the variable "file_name" is set to "mytest malte.gif", as it translates the "+" character rather correctly into a " ".

Any suggestions ?

Collapse
2: Re: ns_urlencode broken? (response to 1)
Posted by Malte Sussdorff on
I solved the problem by adding

regsub -all {\+} $file_url {%2b} file_url

to file-storage/www/folder-chunk.tcl right before the "switch -- $type" statement.

I could commit this fix, but maybe someone else has a better suggestion.

Collapse
3: Re: ns_urlencode broken? (response to 1)
Posted by Jade Rubick on
Submit a fix to the Aolserver group?