DivebombInc Posted May 17, 2017 Share Posted May 17, 2017 Running v2.3.4, is there a setting I'm missing that will allow customers to use special characters in their passwords? Getting several requests for this. OSCOM CE Phoenix v1.0.7.10 Link to comment Share on other sites More sharing options...
♥raiwa Posted May 18, 2017 Share Posted May 18, 2017 Hello @@DivebombInc, I just tried with 2.3.4 BS and I can use all of these: ª!"·$%&/()=áéúóöç Which concrete characters would not work on your store? The only combinations which will be replaced are these you can see in the tep_sanitize function in includes/functions/general.php: function tep_sanitize_string($string) { $patterns = array ('/ +/','/[<>]/'); $replace = array (' ', '_'); return preg_replace($patterns, $replace, trim($string)); } rgds Rainer About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Mikepo Posted May 19, 2017 Share Posted May 19, 2017 @@raiwa, Hi. I changed function tep_sanitize_string to remove unwanted characters from the search string. It seems to work ok and not effecting anything else (not that I've noticed anyway). My question is, what is the main reason for this function? Is it used just to remove unwanted characters before entering data into the DB? If that is the case, then for me to atler $patterns and $replace will be ok. Thanks in advance Mike osC CE live - developing osC Phoenix adding modules with no core changes(awesome and easy!) Link to comment Share on other sites More sharing options...
♥raiwa Posted May 19, 2017 Share Posted May 19, 2017 @@Mikepo, it's for security reason to filter sql injection attempts. About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Mikepo Posted May 19, 2017 Share Posted May 19, 2017 @@raiwa, I thought so, so I filtered for %20 within the advanced_search and store_search files to replace %20 with a space ' ', as I had a problem with bots using %20 instead of space Thanks for the reply Mike osC CE live - developing osC Phoenix adding modules with no core changes(awesome and easy!) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.