You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_tcl-dev@tcl.apache.org by Lee Still <ls...@modcomp.com> on 2005/08/24 17:33:34 UTC

mod_tcl read_post problem

Regarding httpd-2.0.54 and current download of mod_tcl

In read_post spaces remain as + in the values returned.

In tcl_cmd.c  I added the following:

At ~ line 2242

+      {
+         char *cp = (char *)key;
+         while(*cp != 0) {
+            if (*cp == '+') *cp = ' ';
+            cp++;
+         }
+         cp = (char *)val;
+         while(*cp != 0) {
+           if (*cp == '+') *cp = ' ';
+           cp++;
+         }
+      }
                                                                                

      ap_unescape_url((char*) key);
      ap_unescape_url((char*) val);


Also  it should be noted that "array unset pram" is required in scripts 
to remove stale array variable (variables not included in current post).

    variable pram
    array unset pram

    if {[r method] == "POST"} {
        read_post
    }





---------------------------------------------------------------------
To unsubscribe, e-mail: mod_tcl-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: mod_tcl-dev-help@tcl.apache.org


Re: mod_tcl read_post problem

Posted by Michael Link <ml...@synthemesc.com>.
Lee, could you post a context diff of this change? Thanks.

--
Michael

On Aug 24, 2005, at 10:33 AM, Lee Still wrote:

> Regarding httpd-2.0.54 and current download of mod_tcl
>
> In read_post spaces remain as + in the values returned.
>
> In tcl_cmd.c  I added the following:
>
> At ~ line 2242
>
> +      {
> +         char *cp = (char *)key;
> +         while(*cp != 0) {
> +            if (*cp == '+') *cp = ' ';
> +            cp++;
> +         }
> +         cp = (char *)val;
> +         while(*cp != 0) {
> +           if (*cp == '+') *cp = ' ';
> +           cp++;
> +         }
> +      }
>
>      ap_unescape_url((char*) key);
>      ap_unescape_url((char*) val);
>
>
> Also  it should be noted that "array unset pram" is required in  
> scripts to remove stale array variable (variables not included in  
> current post).
>
>    variable pram
>    array unset pram
>
>    if {[r method] == "POST"} {
>        read_post
>    }
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: mod_tcl-dev-unsubscribe@tcl.apache.org
> For additional commands, e-mail: mod_tcl-dev-help@tcl.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: mod_tcl-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: mod_tcl-dev-help@tcl.apache.org