Merge pull request #5 from serghey-rodin/master

update from master
This commit is contained in:
myvesta 2018-05-18 15:56:53 +02:00 committed by GitHub
commit c80350ff3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 10 deletions

View file

@ -16,6 +16,7 @@ $LANG['nl'] = array(
'Services' => 'Processen',
'Firewall' => 'Firewall',
'Updates' => 'Updates',
'Apps' => 'Applicaties',
'Log in' => 'Inloggen',
'Log out' => 'Uitloggen',

View file

@ -13,10 +13,10 @@ if (($_SESSION['user'] == 'admin') && (!empty($_SESSION['look']))) {
}
if (!empty($_REQUEST['path'])) {
$path = $_REQUEST['path'];
$path = htmlspecialchars($_REQUEST['path'], ENT_QUOTES, 'UTF-8');
if (!empty($_REQUEST['raw'])) {
header('content-type: image/jpeg');
passthru (VESTA_CMD . "v-open-fs-file " . $user . " " . escapeshellarg(htmlspecialchars($_REQUEST['path'], ENT_QUOTES, 'UTF-8')));
passthru (VESTA_CMD . "v-open-fs-file " . $user . " " . escapeshellarg($path));
exit;
}
}