diff --git a/index.php b/index.php index 6c57b5c..fcfceb4 100644 --- a/index.php +++ b/index.php @@ -791,8 +791,10 @@ die(); } // User Interface for Writing: - // This creates a basic HTML form. Type in your message and your password. It then POSTs the data to the `/send` endpoint. + // This creates a basic HTML form. Type in your message and your password. It then POSTs the data to the `/action/send` endpoint. function write() { + $send = "/action/send"; + if ( isset( $_GET["announce"] ) && filter_var( $_GET["announce"], FILTER_VALIDATE_URL ) ) { $announceURl = $_GET["announce"]; } else { @@ -823,7 +825,7 @@ echo <<< HTML