[horde] H6 imp appears to ignore mime_drivers.local.php

Ralf Lang ralf.lang at gmail.com
Tue May 27 06:52:16 UTC 2025


Hi, Brent and Jean Charles,

>>
>> I have a file named "mime_drivers.local.php" which contains:
>>
>> <?php
>> $mime_drivers['html']['inline'] = true;
>>
>> I run "composer horde-reconfigure" and this creates a symlink in 
>> <install-dir>/vendor/horde/imp/config for this file that is in the 
>> directory above; however, it doesn't appear to be using the override 
>> setting I have set.
>>
>> I have to update the main mime_drivers.php file in 
>> <install-dir>/vendor/horde/imp/config directory in order to get 
>> inline html to display.
>>
>> This is on imp-7.0.0(alpha 14) and horde(6.0.0-alpha10), using php 
>> 8.4.7.
>
> Hello,
>
> This patch not yet in composer fix a similar problem caused by last 
> update (hook.php not loaded) :
>
> fix: Hoist pathinfo request to make sure the variable pinfo is 
> available in all paths of loadconfig
> https://github.com/horde/Core/commit/02a5e23c587781c31f83c0ff81691122c08a27d9 
>
>
> Sincerly,
>     Jean Charles Delépine
>
The new version will be released shortly. There is a bit of a problem 
here which put this on delay. It might happen that the autoloader tries 
to load the hooks.local.php class twice. You can prevent this by putting 
your custom hook class into a phrase like this:

https://github.com/horde/whups/blob/FRAMEWORK_6_0/config/hooks.php.dist
if (!class_exists('Whups_Hooks')) {

     class Whups_Hooks  {

      ...

}

}

This is only a problem with classes but not with config files which only 
contain arrays. I've described this chain of issues in more details 
here: https://www.ralf-lang.de/2025/05/27/a-wicked-problem-from-the-past/
We will release versions of the apps and libraries with restriction 
rules for the autoloaders to prevent this from happening in the first 
place.



More information about the horde mailing list