On Mon, 1 Dec 2003, Rasmus Lerdorf wrote:

> On Mon, 1 Dec 2003, Derick Rethans wrote:
>
> > On Mon, 1 Dec 2003, Rasmus Lerdorf wrote:
> >
> > > Derick, looking at the code it looks like we are checking for the a= case
> > > and handling that correctly, but not the =a case.  As in foo.com?a= vs
> > > foo.com?=a
> >
> > That is something I did not touch, but I found the problem which caused
> > this...forgot to change the default sapi input filter handler to return
> > new_val_len. I'll have a look at the =a case (what should this do?)
>
> It should skip the variable.

No problems here, as safe_php_register_variable calls
php_register_variable, which calls php_register_variable_safe, which
calls php_register_variable_ex which has this code in there:

    /* ignore leading spaces in the variable name */
    while (*var && *var==' ') {
        var++;
    }
    var_len = strlen(var);
    if (var_len==0) { /* empty variable name, or variable name with a space in it */
        zval_dtor(val);
        return;
    }

Derick

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to