Fix warnings on webmention endpoint.

This commit is contained in:
Adnan ELARAJI 2024-12-13 17:22:52 +01:00
parent d13e72d11c
commit 9bdc9f1b5a
No known key found for this signature in database

View file

@ -5,12 +5,13 @@
// Set path to your mentions twtxt file:
//$logfile = './mentions.txt'; /* Make sure file is writeable */
require_once("partials/base.php");
$logfile = $config['webmentions_txt_path'];
if (!isset($_POST['source']) || !isset($_POST['target'])) {
print('Please send a propper webmention to this endpoint');
header($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
print('Please send a propper webmention to this endpoint');
exit;
}