Skip to content

Commit

Permalink
The Doctrine DBAL implementation should validate the path of the node…
Browse files Browse the repository at this point in the history
… before loading it.
  • Loading branch information
damz committed Jan 16, 2012
1 parent 9d4e93b commit 2b45959
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Jackalope/Transport/DoctrineDBAL/Client.php
Expand Up @@ -721,6 +721,7 @@ public function getAccessibleWorkspaceNames()
*/
public function getNode($path)
{
$this->assertValidPath($path);
$this->assertLoggedIn();

$sql = "SELECT * FROM phpcr_nodes WHERE path = ? AND workspace_id = ?";
Expand Down

0 comments on commit 2b45959

Please sign in to comment.