Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-45

suspicious EALPHA constants in packages/Validate.php

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Internationalisation
    • Labels:
      None

      Description

      There are two suspicious constants in packages/Validate.php (here interpreted in ISO-8859-1 encoding):

      define('VALIDATE_EALPHA_LOWER', VALIDATE_ALPHA_LOWER . 'áéíóúàèìòùäëïöüâêîôûñç');
      define('VALIDATE_EALPHA_UPPER', VALIDATE_ALPHA_UPPER . 'ÁÉÍÓÚÀÈÌÒÙÄËÏÖÜÂÊÎÔÛÑÇ');

      EALPHA doesn?t seem to be used anywhere in CiviCRM.

      Assuming these are in ISO-8859-1 (in this encoding the constants seem to cover all ?western? special characters and nothing more), they are useless for (UTF-8ish) CiviCRM.

        Attachments

          Activity

            People

            • Assignee:
              shot Piotr Szotkowski
              Reporter:
              shot Piotr Szotkowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: