Larry E. Masters aka PhpNut wrote:
> 
>     Any ideas why three Tokens are generated and why two of them have
>     different hashes?
> 
>     Marcus
> 
> 
> I would need to see the view code related to that output.

Ok, here comes the view code in a better form ... ;)

http://bin.cakephp.org/saved/18415

The first five lines are from my edit.ctp

The lines after that come from an element (cms_articles/_form) which I
use for both -- the add and edit actions.

I assumed that the manually entered form fields (starting at line 32;
for a Javascript Datepicker) could cause the blackholing but after
removing this fields the POST gets blackholed too.

I played around with xdebug and found the lines in security.php where we
run into trouble:

security.php:514

$check = urlencode(Security::hash(serialize($field) . CAKE_SESSION_STRING));

if($form !== $check) {
  if(!$this->blackHole($controller, 'auth')) {
    return null;
}

The hash which is generated for $check is different from the value in
$form and the black hole eats us ...

Marcus


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to