From f5ac64c5709b91ccd6736919f11ff5143d46744a Mon Sep 17 00:00:00 2001 From: Tom Slominski Date: Mon, 6 Jan 2014 19:34:12 +0000 Subject: [PATCH] Removing the left over bookmarklet code reduces spam by further 25%, say completely unscientific studies. --- result.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/result.php b/result.php index c1dee16..2bbf02c 100644 --- a/result.php +++ b/result.php @@ -10,17 +10,6 @@ $shorturl = isset( $return['shorturl'] ) ? $return['shorturl'] : ''; $message = isset( $return['message'] ) ? $return['message'] : ''; $title = isset( $return['title'] ) ? $return['title'] : ''; -// Stop here if bookmarklet with a JSON callback function ("instant" bookmarklets) -- code from YOURLS -if( isset( $_GET['jsonp'] ) && $_GET['jsonp'] == 'yourls' ) { - $short = $return['shorturl'] ? $return['shorturl'] : ''; - $message = "Short URL (Ctrl+C to copy)"; - header('Content-type: application/json'); - echo yourls_apply_filter( 'bookmarklet_jsonp', "yourls_callback({'short_url':'$short','message':'$message'});" ); - include('footer.php'); - - die(); -} - $resp = recaptcha_check_answer (ISQ::$recaptcha['private'], $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"],