Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[jan] Check if temporary directory is writable (skhorde@smail.inf.fh-…
…bonn-rhein-sieg.de, Request #14237).
  • Loading branch information
yunosh committed Feb 12, 2016
1 parent 86c6636 commit 376f8c1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
11 changes: 11 additions & 0 deletions horde/lib/Test.php
Expand Up @@ -973,6 +973,17 @@ public function appTests()
? '<strong style="color:green">Yes</strong>'
: '<strong style="color:red">No</strong><br /><strong style="color:orange">If caching javascript and CSS files by storing them in static files (HIGHLY RECOMMENDED), this directory must be writable as the user the web server runs as%s.</strong>';

/* Determine if 'tmpdir' is writable by the web user. */
$tmpdir = Horde::getTempDir();
$ret .= sprintf(
'<li>Is tmpdir <tt>%s</tt> writable by the web server user%s? ',
htmlspecialchars($tmpdir),
$user ? (' (' . $user['name'] . ')') : ''
);
$ret .= is_writable($tmpdir)
? '<strong style="color:green">Yes</strong>'
: '<strong style="color:red">No</strong><br />';

if (extension_loaded('imagick')) {
$im = new Imagick();
$imagick = is_callable(array($im, 'getIteratorIndex'));
Expand Down
19 changes: 17 additions & 2 deletions horde/package.xml
Expand Up @@ -4173,13 +4173,28 @@
<stability>
<release>stable</release>
<api>stable</api></stability>
<date>2015-10-20</date>
<date>2016-02-02</date>
<license uri="http://www.horde.org/licenses/lgpl">LGPL-2</license>
<notes>
* [jan] SECURITY: Fix XSS vulnerability in menu bar exposed by few applications (Bug #14213).
* [jan] Add more detailed user DN settings to Kolab group configuration (Request #11737).
* [jan] Fix returning to last page after problem reporting from AJAX pages (Bug #12112).
* [jan] Fix custom database configuration for groups (Bug #11664).
* [jan] Use access rules compatible with both Apache 2.2 and 2.4.
* [jan] SECURITY: Fix XSS vulnerability in menu bar exposed by only a few applications (Bug #14213).
* [mjr] Fix reporting results for non-select queries in administrative sql shell (Bug #14216).
</notes>
</release>
<release>
<version>
<release>5.2.10</release>
<api>5.2.0</api></version>
<stability>
<release>stable</release>
<api>stable</api></stability>
<date>2016-02-02</date>
<license uri="http://www.horde.org/licenses/lgpl">LGPL-2</license>
<notes>
* [jan] Check if temporary directory is writable (skhorde@smail.inf.fh-bonn-rhein-sieg.de, Request #14237).
</notes>
</release>
<release>
Expand Down

0 comments on commit 376f8c1

Please sign in to comment.