Re: Re: cvs: php-src /main php_variables.c

From: Date: Sun, 24 Apr 2005 12:11:18 +0000
Subject: Re: Re: cvs: php-src /main php_variables.c
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-16065@lists.php.net to get a copy of this message
On Sun, 24 Apr 2005, Stefan Esser wrote:
    As now it handles these strings it gets the same:
      name="whatever,this,might,be";name2="value2"
      name="whatever,this,might,be",name2="value2"
    These were actually invalid examples.
    'name' can NOT contain any of these chars: =,; \t\r\n\013\014
    'value' can NOT contain any of these chars: ,; \t\r\n\013\014
    If you want such chars in them, you have to encode them.
    How can this affect modsecurity at all????
Forgive me my ignorance, but I do not see any handling of " chars.
    And there wasn't such before I added the , as acceptable separator.
your strings should now result in 5 variables 1. variable: name - content: "whatever 2. variable: this - empty 3. variable: might - empty 4. variable: be" - empty 5. variable: name2 - content: "value"
    Yes, and with this the same would happen:
     name="whatever;this;might;be";name2="value2"
    If I could set a cookie with such value, that is.
Off course this is wrong :)
    Yes it is, if it was allowed.
    --Jani


« previous php.internals (#16065) next »