check for correct extension for auto-update feature, fixes #1648

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-08-20 09:16:33 +02:00
parent 2444158bbb
commit 8431a82f2c
7 changed files with 196 additions and 190 deletions

View File

@@ -32,7 +32,7 @@ if (ini_get('allow_url_fopen') === false) {
}
// check for archive-stuff
if (function_exists('gzopen') === false) {
if (! extension_loaded('zip')) {
redirectTo($filename, array('s' => $s, 'page' => 'error', 'errno' => 2));
}