8000 [HttpFoundation] Remove invalid HTTP method from exception message · symfony/symfony@596f8bb · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 596f8bb

Browse files
[HttpFoundation] Remove invalid HTTP method from exception message
1 parent 706d862 commit 596f8bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ public function getMethod()
12941294
}
12951295

12961296
if (!preg_match('/^[A-Z]++$/D', $method)) {
1297-
throw new SuspiciousOperationException(sprintf('Invalid method override "%s".', $method));
1297+
throw new SuspiciousOperationException('Invalid HTTP method override.');
12981298
}
12991299

13001300
return $this->method = $method;

0 commit comments

Comments
 (0)
0