Don't reflect a malformed DSN in error messages. It's not necessary, and carries a distant risk of XSS in the host app.
This commit is contained in:
parent
fa59bf6cb1
commit
397a4d4a44
|
|
@ -80,9 +80,7 @@ class DSNConfigurator
|
|||
$config = $this->parseUrl($dsn);
|
||||
|
||||
if (false === $config || !isset($config['scheme']) || !isset($config['host'])) {
|
||||
throw new Exception(
|
||||
sprintf('Malformed DSN: "%s".', $dsn)
|
||||
);
|
||||
throw new Exception('Malformed DSN');
|
||||
}
|
||||
|
||||
if (isset($config['query'])) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue