Navigation Menu

Skip to content

Commit

Permalink
[HttpFoundation] Rename HeaderBag::validateCookieName to HeaderBag::v…
Browse files Browse the repository at this point in the history
…alidateCookie
  • Loading branch information
ornicar authored and fabpot committed Nov 21, 2010
1 parent 67f6889 commit faf0182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/HeaderBag.php
Expand Up @@ -175,7 +175,7 @@ public function delete($key)
*/
public function setCookie($name, $value, $domain = null, $expires = null, $path = '/', $secure = false, $httponly = true)
{
$this->validateCookieName($name, $value);
$this->validateCookie($name, $value);

return $this->set('Cookie', sprintf('%s=%s', $name, urlencode($value)));
}
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php
Expand Up @@ -63,7 +63,7 @@ public function delete($key)
*/
public function setCookie($name, $value, $domain = null, $expires = null, $path = '/', $secure = false, $httponly = true)
{
$this->validateCookieName($name, $value);
$this->validateCookie($name, $value);

$cookie = sprintf('%s=%s', $name, urlencode($value));

Expand Down

0 comments on commit faf0182

Please sign in to comment.