https://issues.apache.org/bugzilla/show_bug.cgi?id=57212

            Bug ID: 57212
           Summary: Header size bug
           Product: Apache httpd-2
           Version: 2.2.22
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_fcgid
          Assignee: [email protected]
          Reporter: [email protected]

Apache Internal error with send headers > 8Kb, for example:

function randomPassword($len) {
    $alphabet = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789";
    for ($i = 0; $i < $len; $i++) {
        $n = rand(0, count($alphabet)-1);
        $pass .= $alphabet[$n];
    }
    return $pass;
}
setcookie("test", randomPassword(8173));

And this code OK:

function randomPassword($len) {
    $alphabet = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789";
    for ($i = 0; $i < $len; $i++) {
        $n = rand(0, count($alphabet)-1);
        $pass .= $alphabet[$n];
    }
    return $pass;
}
setcookie("test", randomPassword(8172));

Difference in one byte.

Please, check.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to