Changeset 2079 in ExiteCMS for trunk/register.php
- Timestamp:
- 11/29/08 11:47:50 (3 years ago)
- File:
-
- 1 edited
-
trunk/register.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/register.php
r1935 r2079 62 62 } else if (isset($_POST['register'])) { 63 63 $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']); 66 66 $email = stripinput(trim(eregi_replace(" +", "", $_POST['email']))); 67 67 $password1 = stripinput(trim(eregi_replace(" +", "", $_POST['password1']))); … … 71 71 // if (!preg_match("/^[-0-9A-Z_@\s]+$/i", $username)) $error .= $locale['403']."<br /><br />\n"; 72 72 73 if (preg_match("/^[0-9A-Z @]{6,20}$/i", $password1)) {73 if (preg_match("/^[0-9A-Z_@!\.\?]{6,20}$/i", $password1)) { 74 74 if ($password1 != $_POST['password2']) $error .= $locale['404']."<br /><br />\n"; 75 75 } else { … … 84 84 if (CHECK_EMAIL) { 85 85 if (CMS_getmxrr($email_domain, $mxhosts)) { 86 // Get the hostnam e the MX record points to86 // Get the hostnamxe the MX record points to 87 87 $mailhost = $mxhosts[0]; 88 88 } else { … … 170 170 $user_sig = isset($_POST['user_sig']) ? stripinput(trim($_POST['user_sig'])) : ""; 171 171 } 172 error_reporting(E_ALL); 172 173 173 if ($error == "") { 174 174 if ($settings['email_verification'] == "1") {
Note: See TracChangeset
for help on using the changeset viewer.
