[AOLSERVER] ns_urldecode doesn't decode plus in 3.4

2001-08-07 Thread Jim Wilcoxson

Patch for ns_urldecode - not decoding + - space:

in nsd/urlencode.c at line 113; broken version:

twobytes[2] = '\0';
while (*string != '\0') {
if (*string != '%') {
Ns_DStringNAppend(pds, string, 1);
++string;
} else {

fixed:

  twobytes[2] = '\0';
  while (*string != '\0') {
if (*string == '+') {
  Ns_DStringNAppend(pds,  , 1);
  ++string;
} else if (*string != '%') {

Jim



Re: [AOLSERVER] ns_urldecode doesn't decode plus in 3.4

2001-08-07 Thread Dossy

Would you mind submitting this as a Bug in the SourceForge
Bug Tracker?

http://sf.net/projects/aolserver

-- Dossy


On 2001.08.07, Jim Wilcoxson [EMAIL PROTECTED] wrote:
 Patch for ns_urldecode - not decoding + - space:

 in nsd/urlencode.c at line 113; broken version:

 twobytes[2] = '\0';
 while (*string != '\0') {
 if (*string != '%') {
 Ns_DStringNAppend(pds, string, 1);
 ++string;
 } else {

 fixed:

   twobytes[2] = '\0';
   while (*string != '\0') {
 if (*string == '+') {
   Ns_DStringNAppend(pds,  , 1);
   ++string;
 } else if (*string != '%') {

 Jim

--
Dossy Shiobara   mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/