Skip to content

Commit 018a4e0

Browse files
sec: Mitigate the attack surface of potential malicious injection (#24)
Simplify error message for route not found - This change attempts to leave less room to potential attacks possible when double quotes are use without prior sanitize or type enforcement. - By using plain text with single quote we mitigate the issue.
1 parent 4579a68 commit 018a4e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Services/Routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function offsetGet($path) : array
107107
return $this->routes[$path];
108108
}
109109

110-
throw new InvalidArgumentException("Route $path not found.");
110+
throw new InvalidArgumentException('Route not found.');
111111
}
112112

113113
/**

0 commit comments

Comments
 (0)