From 02f7331c7dd469356b67d64d43dfa9b278316718 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Thu, 9 Mar 2023 21:54:45 +0000 Subject: [PATCH] Add some routing, start working on actually searching webmentions --- src/Gateways/SqliteGateway.php | 2 +- tests/Gateways/SqliteGatewayTest.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Gateways/SqliteGateway.php b/src/Gateways/SqliteGateway.php index 31665f5..63ff0fc 100644 --- a/src/Gateways/SqliteGateway.php +++ b/src/Gateways/SqliteGateway.php @@ -107,7 +107,7 @@ class SqliteGateway extends WebmentionGatewayInterface { SELECT * FROM webmentions WHERE {$keys} SQL; - + $statement = $this->connection->prepare($sql); $statement->execute($values); diff --git a/tests/Gateways/SqliteGatewayTest.php b/tests/Gateways/SqliteGatewayTest.php index 1f62aba..a216d9c 100644 --- a/tests/Gateways/SqliteGatewayTest.php +++ b/tests/Gateways/SqliteGatewayTest.php @@ -120,6 +120,10 @@ class SqliteGatewayTest extends TestCase "Some Author Name" )); + $this->gateway->find([ + "id; DROP TABLE webmentions;" => 'whatever' + ]); + $this->assertCount( 2, $this->gateway->find([