From 16c3f06452e3f01654cd994ade1ddd9d42f98992 Mon Sep 17 00:00:00 2001 From: Bill Hancock Date: Tue, 28 Jul 2015 19:17:33 -0500 Subject: [PATCH] Update forbidden to locked on rtn code Update YOURLS_FLOOD_DELAY return HTTP code to proper status of locked from forbidden. --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index f1693d3c7..e5aed6578 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1368,7 +1368,7 @@ function yourls_check_IP_flood( $ip = '' ) { if( ( $now - $then ) <= YOURLS_FLOOD_DELAY_SECONDS ) { // Flood! yourls_do_action( 'ip_flood', $ip, $now - $then ); - yourls_die( yourls__( 'Too many URLs added too fast. Slow down please.' ), yourls__( 'Forbidden' ), 403 ); + yourls_die( yourls__( 'Too many URLs added too fast. Slow down please.' ), yourls__( 'Forbidden' ), 423 ); } }