Changeset 1052 in ExiteCMS for trunk/register.php


Ignore:
Timestamp:
11/04/07 13:07:30 (5 years ago)
Author:
hverton
Message:

Added check on missing captcha variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/register.php

    r1024 r1052  
    134134 
    135135        if ($settings['display_validation'] == "1") { 
    136             if (!check_captcha($_POST['captcha_encode'], $_POST['captcha_code'])) { 
     136            if (!isset($_POST['captcha_encode']) || !isset($_POST['captcha_code']) || !check_captcha($_POST['captcha_encode'], $_POST['captcha_code'])) { 
    137137                $error .= $locale['410']."<br />\n"; 
    138138            } 
Note: See TracChangeset for help on using the changeset viewer.