Hi.
I've got a problem with Route passing parameters to action.

routes.php:
Router::connect('/newsletter/unsubscribe/:email', array('controller'
=> 'newsletterReceivers', 'action' => 'unsubscribe'), array('pass' =>
array('email')));

NewsletterReceiversController:
function unsubscribe($email = null) {
  $email = $this->NewsletterReceiver->findByEmail($email);
  if ($this->NewsletterReceiver->del($email)) {
        $this->flash(__('Entry deleted', true), '/', 3);
  } else {
        $this->flash(__('Invalid Entry', true), '/', 3);
  }
}

Request URL:
http://website.local/newsletter/unsubscribe/[email protected]

$email, which is passed as an URL Parameter is "t...@web" and not
"[email protected]"

Can anyone tell me why it is cutted before the dot?

Best
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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