Commit c0624dcb authored by Leigh B. Stoller's avatar Leigh B. Stoller

Remove debugging printf.

parent 7849c792
......@@ -106,7 +106,10 @@ function GETUID() {
return FALSE;
# Verify valid string (no special chars like single/double quotes!).
if (!TBvalid_uid($curname)) {
# We do not use the standard check function here, since we want to
# avoid a DB access on each page until its required. Thats okay since
# since we just need to ensure that we feed to the DB query is safe.
if (! preg_match("/^[-\w]+$/", $curname)) {
return FALSE;
}
return $curname;
......@@ -200,8 +203,6 @@ function CHECKLOGIN($uid) {
# kill the entry anyway so the user is officially logged out.
#
if (time() > $timeout) {
echo "foo $timeout<br>\n";
DBQueryFatal("DELETE FROM login WHERE uid='$uid'");
$CHECKLOGIN_STATUS = CHECKLOGIN_TIMEDOUT;
return $CHECKLOGIN_STATUS;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment