Add some routing, start working on actually searching webmentions
This commit is contained in:
parent
45024faa5f
commit
02f7331c7d
@ -107,7 +107,7 @@ class SqliteGateway extends WebmentionGatewayInterface {
|
|||||||
SELECT * FROM webmentions
|
SELECT * FROM webmentions
|
||||||
WHERE {$keys}
|
WHERE {$keys}
|
||||||
SQL;
|
SQL;
|
||||||
|
|
||||||
$statement = $this->connection->prepare($sql);
|
$statement = $this->connection->prepare($sql);
|
||||||
$statement->execute($values);
|
$statement->execute($values);
|
||||||
|
|
||||||
|
@ -120,6 +120,10 @@ class SqliteGatewayTest extends TestCase
|
|||||||
"Some Author Name"
|
"Some Author Name"
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$this->gateway->find([
|
||||||
|
"id; DROP TABLE webmentions;" => 'whatever'
|
||||||
|
]);
|
||||||
|
|
||||||
$this->assertCount(
|
$this->assertCount(
|
||||||
2,
|
2,
|
||||||
$this->gateway->find([
|
$this->gateway->find([
|
||||||
|
Loading…
Reference in New Issue
Block a user