From d78d4769fee0bc2ed3a242f864b5c224a12ac27c Mon Sep 17 00:00:00 2001 From: "D. Marshall Lemcoe Jr." Date: Wed, 18 Jul 2012 20:50:10 -0300 Subject: [PATCH] Uses 5-character filename instead of the long default. Makes for a shorter URL. --- recv.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/recv.php b/recv.php index fb776af..c8e3ede 100644 --- a/recv.php +++ b/recv.php @@ -1,4 +1,4 @@ -= $MAXLENGTH) { - @unlink($path); # because it's probably broken - rsperr('Request entity larger than or equal to '.$MAXLENGTH.' B', - '413 Request Entity Too Large'); + @unlink($path); # because it's probably broken + rsperr('Request entity larger than or equal to '.$MAXLENGTH.' B', + '413 Request Entity Too Large'); } # Respond with the url @@ -51,4 +51,4 @@ function pathfromid($id, $suffix='') { header('Content-Type: text/plain; charset=utf-8'); header('Content-Length: '.strlen($url)); echo $url; -?> +?> \ No newline at end of file