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

Safe file extension in uppercase refused

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.1.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      In our organisation the Document Management System produces file extensions in uppercase (MyLetter.DOC)
      CiviCRM does not reckognise the capitalized extensions and changes the filename to MyLetter_DOC.unknown.

      I have overriden CRM_Utils_Files::isExtensionSafe()
      line 259

      Code:
      // wrap $ext into strtolower to allow for Uppercase extensions
      return isset( $extensions[strtolower($ext)] ) ? true : false;

        Attachments

          Activity

            People

            • Assignee:
              neha.saraph Neha Kulkarni
              Reporter:
              clivesj Joop Sint Jago
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: