Jump to content
Latest News: (loading..)

Search the Community

Showing results for tags 'inputs'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • News and Announcements
    • Partner Announcements
    • Ambassadors
  • Commercial Support
    • Developer Feedback
  • osCommerce Online Merchant v2.x
    • General Support
    • Installation and Configuration
    • Upgrading from Earlier Versions (v2.x to v2.x)
    • Add-Ons
    • Tips and Tricks
    • Security
  • Development
    • osCommerce Online Merchant v2.4
    • osCommerce Online Merchant Community Bootstrap Edition
    • osCommerce Online Merchant v3.x
    • Development Proposals
  • General
    • OSCOMMERCE.TV
    • Next Steps / Optimizations / Marketing
    • Live Shop Reviews
    • E-Commerce Laws
    • General Discussions
    • PHP / SQL / Web Design
  • Club osC's Announcements
  • PayPal's Announcements
  • Sage Pay's Announcements
  • Solomono - new level osCommerce templates's Announcements
  • German Community's OSCOM v2.x
  • German Community's Allgemein
  • German Community's OSCOM v3.x

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Real Name


Location


Interests


Website

Found 1 result

  1. Hi all, I have found a lot of trouble with non language localized mobile accounts. The characters often used in non-standard formats. For example: The reason is when not instaled localized keyboard language on android cellular phone used. (This could be problem on another tools too). What could be a solution? There would be a simple pre-replace code assist in tep_db_prepare_input() function tep_db_prepare_input($string) { //here is the code critical point for languages if ($_SESSION['language'] == 'hungarian') { $characters = array('à' => 'á', 'è' => 'é', 'ò' => 'ó', 'õ' => 'ő', 'û' => 'ű', 'Õ' => 'Ő', 'Û' => 'Ű'); $from = array_keys($characters); $to = array_values($characters); $string = trim(str_replace($from, $to, $string)); } if (is_string($string)) { return trim(tep_sanitize_string(stripslashes($string))); } elseif (is_array($string)) { reset($string); while (list($key, $value) = each($string)) { $string[$key] = tep_db_prepare_input($value); } return $string; } else { return $string; } } At this moment v2.3.4 codebase use simple php function to prepaire inputs which could not be extend without any user coding, so this solution would be perfect for class based v2.4 core with hooks. Look after in HTML class in v2.4 core: public static function sanitize($string) { $patterns = [ '/ +/', '/[<>]/' ]; $replace = [ ' ', '_' ]; return preg_replace($patterns, $replace, trim($string)); } The question is who has similar effects or anomalies in user account or in orders?
×