https://bugzilla.wikimedia.org/show_bug.cgi?id=25546

           Summary: Call to finfo_file fails on windows systems
           Product: MediaWiki
           Version: 1.17-svn
          Platform: All
        OS/Version: Windows 7
            Status: NEW
          Severity: major
          Priority: Normal
         Component: Resource Loader
        AssignedTo: tpars...@wikimedia.org
        ReportedBy: ste...@harwarth.de
                CC: roan.katt...@gmail.com


On Windows systems the call to finfo_file in CSSMin.php fails because of the
relative path that is passed as argument.

According to http://drupal.org/node/288811 the path must be passed through
realpath for finfo_file to work.

Changing line 563 to the following cures the bug on windows:
$type = finfo_file( finfo_open( FILEINFO_MIME_TYPE ), realpath( $file ) );

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to