[pkg-horde] horde3 3.3.8+debian0-1 PHP error (with patch)

MR321 MR321 at gmx.de
Thu Aug 19 15:25:05 UTC 2010


Hi,

I hope this e-mail reaches someone who can fix this bug.
Horde tries to open a file as a directory which fails.

Patch:
 Goto /usr/share/horde3/lib/prefs.php line 166
 Replace
> if (is_readable($theme_base . '/' . $dir . '/info.php')) {
 with
> if (is_dir($theme_base . '/' . $dir) && is_readable($theme_base . '/' . $dir . '/info.php')) {


Error Log (php5 5.3.2-2):
> PHP Warning:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(/usr/share/horde3/lib/../themes/ie6_or_less.css/info.php) is not within the allowed path(s): (/usr/share/horde3:/etc/horde:/usr/share/php:/var/log/horde:/tmp) in /usr/share/horde3/lib/prefs.php on line 166
> PHP Warning:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(/usr/share/horde3/lib/../themes/rtl.css/info.php) is not within the allowed path(s): (/usr/share/horde3:/etc/horde:/usr/share/php:/var/log/horde:/tmp) in /usr/share/horde3/lib/prefs.php on line 166
> PHP Warning:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(/usr/share/horde3/lib/../themes/ie5mac.css/info.php) is not within the allowed path(s): (/usr/share/horde3:/etc/horde:/usr/share/php:/var/log/horde:/tmp) in /usr/share/horde3/lib/prefs.php on line 166
> PHP Warning:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(/usr/share/horde3/lib/../themes/moz14.css/info.php) is not within the allowed path(s): (/usr/share/horde3:/etc/horde:/usr/share/php:/var/log/horde:/tmp) in /usr/share/horde3/lib/prefs.php on line 166
> PHP Warning:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(/usr/share/horde3/lib/../themes/opera.css/info.php) is not within the allowed path(s): (/usr/share/horde3:/etc/horde:/usr/share/php:/var/log/horde:/tmp) in /usr/share/horde3/lib/prefs.php on line 166
> PHP Warning:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(/usr/share/horde3/lib/../themes/safari.css/info.php) is not within the allowed path(s): (/usr/share/horde3:/etc/horde:/usr/share/php:/var/log/horde:/tmp) in /usr/share/horde3/lib/prefs.php on line 166
> PHP Warning:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(/usr/share/horde3/lib/../themes/screen.css/info.php) is not within the allowed path(s): (/usr/share/horde3:/etc/horde:/usr/share/php:/var/log/horde:/tmp) in /usr/share/horde3/lib/prefs.php on line 166
> PHP Warning:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(/usr/share/horde3/lib/../themes/embed.css/info.php) is not within the allowed path(s): (/usr/share/horde3:/etc/horde:/usr/share/php:/var/log/horde:/tmp) in /usr/share/horde3/lib/prefs.php on line 166
> PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/share/horde3/lib/prefs.php:166) in /usr/share/horde3/templates/common-header.inc on line 4
> PHP Warning:  Cannot modify header information - headers already sent by (output started at /usr/share/horde3/lib/prefs.php:166) in /usr/share/horde3/templates/common-header.inc on line 5


Thank you



More information about the pkg-horde-hackers mailing list