Version 0.9 ()
------------------------------------------------------------------------
+ * Adjusted checking for "convert" binary in installation for
+ Windows servers. Thanks to BobRock! (garvinhicking)
+
* BBCode plugin: Allow ~ and ! URL characters (garvinhicking)
* Made serendipity_event_blogpdf an external plugin (nohn)
$path[] = ini_get('safe_mode_exec_dir');
if (isset($_SERVER['PATH'])) {
- $path = array_merge($path, explode(':', $_SERVER['PATH']));
+ $path = array_merge($path, explode(PATH_SEPARATOR, $_SERVER['PATH']));
}
/* add some other possible locations to the path while we are at it,
$path[] = '/usr/local/bin';
foreach ($path as $dir) {
- if ((function_exists('is_executable') && @is_executable($dir . '/convert')) || @is_file($dir . '/convert')) {
+ if (!empty($dir) && (function_exists('is_executable') && @is_executable($dir . '/convert')) || @is_file($dir . '/convert')) {
return $dir . '/convert';
}
}