Changeset 2079 in ExiteCMS for trunk/register.php


Ignore:
Timestamp:
11/29/08 11:47:50 (3 years ago)
Author:
WanWizard
Message:

fixed display of a login panel with http even when ssl was set as required

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/register.php

    r1935 r2079  
    6262    } else if (isset($_POST['register'])) { 
    6363        $error = ""; 
    64         $username = stripinput(trim(eregi_replace(" +", " ", $_POST['username']))); 
    65         $fullname = $_POST['fullname']; 
     64        $username = stripinput(trim(eregi_replace(" +", "", $_POST['username']))); 
     65        $fullname = eregi_replace("\"|'", "", $_POST['fullname']); 
    6666        $email = stripinput(trim(eregi_replace(" +", "", $_POST['email']))); 
    6767        $password1 = stripinput(trim(eregi_replace(" +", "", $_POST['password1']))); 
     
    7171    //  if (!preg_match("/^[-0-9A-Z_@\s]+$/i", $username)) $error .= $locale['403']."<br /><br />\n"; 
    7272         
    73         if (preg_match("/^[0-9A-Z@]{6,20}$/i", $password1)) { 
     73        if (preg_match("/^[0-9A-Z_@!\.\?]{6,20}$/i", $password1)) { 
    7474            if ($password1 != $_POST['password2']) $error .= $locale['404']."<br /><br />\n"; 
    7575        } else { 
     
    8484        if (CHECK_EMAIL) { 
    8585            if (CMS_getmxrr($email_domain, $mxhosts)) { 
    86                 // Get the hostname the MX record points to 
     86                // Get the hostnamxe the MX record points to 
    8787                $mailhost = $mxhosts[0]; 
    8888            } else { 
     
    170170            $user_sig = isset($_POST['user_sig']) ? stripinput(trim($_POST['user_sig'])) : ""; 
    171171        } 
    172         error_reporting(E_ALL); 
     172 
    173173        if ($error == "") { 
    174174            if ($settings['email_verification'] == "1") { 
Note: See TracChangeset for help on using the changeset viewer.