reject messages with no @ in the ID
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 18 Jan 2012 15:55:03 +0000 (12:55 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 18 Jan 2012 15:55:03 +0000 (12:55 -0300)
archives/html/msgtxt.php

index 639c1dfd9b54c851b409109920516f38106b0ee2..1d2c792e0962a7384ea56feed8eaf4b7946ec276 100644 (file)
@@ -3,6 +3,12 @@
 $id = $_GET["id"];
 $id = str_replace("/", "_", $id);
 
+if (strpos($id, "@") == FALSE) {
+       header("Status: 404 fucked up message-id");
+       print("go away, you insensitive clod\n");
+       exit;
+}
+       
 $parts = split("@", $id, 2);
 
 header("Content-type: text/plain");