obey-robots.txt
July 22 2017 21:37:03
Navigation
Your ad can be here below
Facebook Like
Portfolio
BetterClimate.Net
ComplaintSupport.Com
Daily-Breaking-News.Com
Kidiot.Org
Php-Fusion.Asia
Php-Fusion.Cn
Php-Fusion.Fr
Php-Fusion.In
Php-Fusion.Start-Pages.Com
Rain-Radar.Com
Speed-Testing.Net
Start-Pages.Com
WebhostingTrouble.Com
WebmasterTrouble.Com
View Thread
Wrong translation, better translation, help with translation.
 Print Thread

[Fix] password contains invalid characters!

Fusioneer
Several times I have been contacted by people with trouble entering a valid password upon registration.
They would get an error like this: "Password is too short or contains invalid characters!"

I carefully looked at the corresponding function in PasswordAuth.class.php:
Download source  GeSHi: PHP
  1. // Checks if new password input is valid
  2. private function _isValidPasswordInput() {
  3. if (preg_match("/^[0-9A-Z@!#$%&\/\(\)=\-_?+\*\.,:;]{8,64}$/i", $this->inputNewPassword)) {
  4. return true;
  5. } else {
  6. return false;
  7. }
  8. }
  9.  
Parsed in 0.028 seconds, using GeSHi 1.0.8.10

But could not find anything wrong.

Then I looked at the translation in the locale files and here is the culprit. The \ (backslash) is presented as a valid character in a password, but it is NOT.
In user_fields.php change:
Download source  GeSHi: PHP
  1. $locale['u147'] = "Password must be between 8 and 64 chars long.<br />Allowed symbols are a-z, 0-9 and @!#$%&amp;\/()=-_?+*.,:;";
Parsed in 0.030 seconds, using GeSHi 1.0.8.10

to (note the misplaced \ (backslash) here)
Download source  GeSHi: PHP
  1. $locale['u147'] = "Password must be between 8 and 64 chars long.<br />Allowed symbols are a-z, 0-9 and @!#$%&amp;/()=-_?+*.,:;";
Parsed in 0.027 seconds, using GeSHi 1.0.8.10


The \ (backslash) is used to escape some special characters in a preg_match function. Apparently this is a typo in the locale file and need to be fixed in order to ensure smooth registration of new users. Now they get frustrated and leave your site.
Warning about ParkingCrew.com! Case: ParkingCrew.com acquires NameDrive.com but earnings are not transferred despite assurances and promises. Inquiries about this are ignored! It's just a con compagny. Don't do business with them!
 
Jump to Forum:
New Thread Post Reply
Gebruik BBcode of HTML om naar; '[Fix] password contains invalid characters!', te verwijzen!
BBcode:
HTML:
Vergelijkbare onderwerpen
Thread Forum Replies Last Post
Fixing special characters in sendmail_include.php Modifications to sendmail_include.php 3 12-11-2014 17:18
Users Online
Guests Online: 1

Members Online: 0

Total Members: 51
Newest Member: SprDave
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Last Seen Users
Fusioneer 1 day
Language Switcher
Theme Switcher
Shoutbox
You must login to post a message.

No messages have been posted.
Member Poll
PHP-Fusion, I might try it.

Yes
Member Poll: PHP-Fusion, I might try it. Yes 100% [5 Votes]
100% [5 Votes]

No
Member Poll: PHP-Fusion, I might try it. No 0% [0 Votes]
0% [0 Votes]

Maybe
Member Poll: PHP-Fusion, I might try it. Maybe 0% [0 Votes]
0% [0 Votes]

Votes: 5
You must login to vote.
Started: 20-10-2011
Latest Articles
No Articles available
673,060 unique visits