Forums / Cotonti / Bugs / Archive / User Registration Bug

Since Seditio

minimalheight
#1 2009-02-19 01:59
I thought this would of been fixed by now but when testing on my strict server the default value for timezone is empty when it's described as an integer in sql thus not allowing registration and throwing a nice error.

users.register.inc.php

line #95

$rusername = str_replace(' ', '', $rusername);

add after

$rtimezone = !empty($rtimezone) ? $rtimezone : 0;

Thought that was a good place for that. BTW I'm n3uro, the other neuro, since 06-04-2003 BITCHES.

SHYT, I also get this while logged in and trying to view users.php

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

Notice: Undefined index: m in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\demo-lib\cotonti\0.0.2\users.php on line 22

Fixed

users.php

line # 22+

if ($_GET['m']=="auth")
{
define('SED_AUTH', TRUE);
}

replace with

$m = !empty($_GET['m']) ? $_GET['m'] : '';

if ($m=="auth")
{
define('SED_AUTH', TRUE);
}

Sorry my server is strict as hell but that's how I code.

Forgot to add, Windows XP x64, Apache/2.2.10 (Win32) PHP/5.2.6, 5.1.30-community (x64)
This post was edited by minimalheight (2009-02-19 02:24, 15 years ago)
Trustmaster
#2 2009-02-19 04:09
These bugs have been fixed in 0.0.3 beta. Thanks for testing and reporting anyways :-)
May the Source be with you!