Author: philipp.gruber
Description:
In my wiki, when generating thumbnails, I got an error which said, that it can't generate thumbnails because safe_mode was on, although I disabled safe_mode.
After searching in the code, I found the followig:
if( ini_get( 'safe_mode' )) { wfDebug( "wfShellExec can't run in safe_mode, PHP's exec functions are too broken.\n" ); $retval = 1; return "Unable to run external programs in safe mode."; }
The problem here is, that the if only checks wether the variable safe_mode is set. In my case, it was actually set, but the value is 'Off'.
Then I changed it to
if( ini_get( 'safe_mode' ) && ini_get('safe_mode') != 'Off') {
And now it works fine. It's not a nice solution, but it works for me. Not sure wether it is neccessary to check also for 'off', '0', 'false', etc.
HTH
Philipp
Version: 1.11.x
Severity: normal