[xoops-cvslog 226] CVS update: xoops2jp/html/modules/system/admin/users

Back to archive index

onokazu onoka****@users*****
2005年 6月 30日 (木) 01:40:25 JST


Index: xoops2jp/html/modules/system/admin/users/main.php
diff -u xoops2jp/html/modules/system/admin/users/main.php:1.2.6.4.2.1 xoops2jp/html/modules/system/admin/users/main.php:1.2.6.4.2.2
--- xoops2jp/html/modules/system/admin/users/main.php:1.2.6.4.2.1	Sat Jun 11 11:57:08 2005
+++ xoops2jp/html/modules/system/admin/users/main.php	Thu Jun 30 01:40:25 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: main.php,v 1.2.6.4.2.1 2005/06/11 02:57:08 onokazu Exp $
+// $Id: main.php,v 1.2.6.4.2.2 2005/06/29 16:40:25 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -59,7 +59,7 @@
         $member_handler =& xoops_gethandler('member');
         $edituser =& $member_handler->getUser($uid);
         $myts =& MyTextSanitizer::getInstance();
-        if ($edituser->getVar('uname') != $username && $member_handler->getUserCount(new Criteria('uname', addslashes($username))) > 0) {
+        if ($edituser->getVar('uname') != $username && $member_handler->getUserCount(new Criteria('uname', $username)) > 0) {
             xoops_cp_header();
             echo 'User name '.htmlspecialchars($username).' already exists';
             xoops_cp_footer();
@@ -235,7 +235,7 @@
     } else {
         $member_handler =& xoops_gethandler('member');
         // make sure the username doesnt exist yet
-        if ($member_handler->getUserCount(new Criteria('uname', addslashes($username))) > 0) {
+        if ($member_handler->getUserCount(new Criteria('uname', $username)) > 0) {
             $adduser_errormsg = 'User name '.$username.' already exists';
         } else {
             $newuser =& $member_handler->createUser();


xoops-cvslog メーリングリストの案内
Back to archive index