Properly escape SQL table.
parent
07a81f6dd5
commit
e2f99d4ec8
|
@ -62,7 +62,7 @@ class PathMatcher implements InitialMatcherInterface {
|
|||
|
||||
$ancestors = $this->getCandidateOutlines($parts);
|
||||
|
||||
$routes = $this->connection->query("SELECT name, route FROM {{$this->tableName}} WHERE pattern_outline IN (:patterns) ORDER BY fit", array(
|
||||
$routes = $this->connection->query("SELECT name, route FROM {" . $this->connection->escapeTable($this->tableName) . "} WHERE pattern_outline IN (:patterns) ORDER BY fit", array(
|
||||
':patterns' => $ancestors,
|
||||
))
|
||||
->fetchAllKeyed();
|
||||
|
|
Loading…
Reference in New Issue