From 8f6bad8843a2bbcb8a231080d792a3ebbb3cde7a Mon Sep 17 00:00:00 2001 From: LordBeaver Date: Sat, 21 Feb 2015 22:31:29 +0300 Subject: [PATCH] Update result.php --- result.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/result.php b/result.php index 6e6b2a7..bd5321f 100644 --- a/result.php +++ b/result.php @@ -3,15 +3,15 @@ include('header.php'); $resp = recaptcha_check_answer (ISQ::$recaptcha['private'], $_SERVER["REMOTE_ADDR"], - $_POST["recaptcha_challenge_field"], - $_POST["recaptcha_response_field"]); + isset($_POST["recaptcha_challenge_field"]) ? $_POST["recaptcha_challenge_field"] : '', + isset($_POST["recaptcha_response_field"]) ? $_POST["recaptcha_response_field"] : ''); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ( '

' . yourls__( 'The reCAPTCHA wasn\'t entered correctly. Go back and try it again.', 'isq_translation' ) . '

' ); } -$url = yourls_sanitize_url( $_REQUEST['url'] ); +$url = isset( $_REQUEST['url'] ) ? yourls_sanitize_url( $_REQUEST['url'] ) : ''; $keyword = isset( $_REQUEST['keyword'] ) ? yourls_sanitize_keyword( $_REQUEST['keyword'] ) : '' ; $title = isset( $_REQUEST['title'] ) ? yourls_sanitize_title( $_REQUEST['title'] ) : '' ; $return = yourls_add_new_link( $url, $keyword, $title );