sqewl

1

sqewl wrote (edited )

This is works great, thanks.

Except one issue I noticed when running this on my server is that this line gave me an error:

if (!hash_equals($_SERVER['HTTP_X_POSTMILL_SECRET'] ?? '', SECRET)) {
    http_response_code(403);

    die('{"error": "get out"}');
}

When I removed it, it ran properly. I don't know much about php so not sure what caused it but I'll need to figure something out to keep the script secure. I will see if I can research to figure it out, but would be glad to get your input.