CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Safe file extension in uppercase refused
Pages: [1]

Author Topic: Safe file extension in uppercase refused  (Read 831 times)

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Safe file extension in uppercase refused
February 03, 2010, 08:24:26 am
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: [Select]
// wrap $ext into strtolower to allow for Uppercase extensions
return isset( $extensions[strtolower($ext)] ) ? true : false;

Is this to be considered a bug or a feature request?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Safe file extension in uppercase refused
February 03, 2010, 08:31:37 am

bug

file an issue, we'll fix for 3.1.2 :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Re: Safe file extension in uppercase refused
February 03, 2010, 12:33:06 pm
For tracking: http://issues.civicrm.org/jira/browse/CRM-5767

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Safe file extension in uppercase refused

This forum was archived on 2017-11-26.