Hi,
I tried to install version 1.1.2. On the second page I keep getting the "Username contains illegal characters!" message. The username I am tiring to use is amvir2_cmsuser
I assume based on the regex in CMSInstaller.class.php that the _ is the problem, but not sure why. It should be a legal character on a database user name.
I am using cPanel, and it automatically ads a prefix amvir2_ to the username.
I tried changing the regex to the following /^[a-zA-Z][a-zA-Z0-9\_]+$/ but it did not help.
Is there another file I would need to change?
Any help would be appriciated.
Thanks,
Z-
Username contains illegal characters! problem
Re: Username contains illegal characters! problem
You could try
"/^[a-zA-Z0-9_]+$/"
this is untried and not tested but should work although I'm not sure if there would be any subsequent problems.
"/^[a-zA-Z0-9_]+$/"
this is untried and not tested but should work although I'm not sure if there would be any subsequent problems.
Re: Username contains illegal characters! problem
Thanks,
It turned out that mine regex was correct, I just didn't realize that I did not upload the modified file, becuase I installed it through SSH, and I didn't change the user privilege.
Anyhow, I would recommend changing the CMSInstaller.class.php line 163 to
so it accepts the _ character.
It turned out that mine regex was correct, I just didn't realize that I did not upload the modified file, becuase I installed it through SSH, and I didn't change the user privilege.
Anyhow, I would recommend changing the CMSInstaller.class.php line 163 to
Code: Select all
else if ( !preg_match( "/^[a-zA-Z][a-zA-Z0-9\_]+$/", trim($_POST['adminusername']) ) )