Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix #1059
  • Loading branch information
tablatronix committed Jun 16, 2015
1 parent fdc1c7c commit cb18457
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin/filebrowser.php
Expand Up @@ -20,7 +20,7 @@
$subPath = (isset($_GET['path'])) ? $_GET['path'] : "";
if(!path_is_safe($path,GSDATAUPLOADPATH)) die();
$returnid = isset($_GET['returnid']) ? var_out($_GET['returnid']) : "";
$func = (isset($_GET['func'])) ? $_GET['func'] : "";
$func = (isset($_GET['func'])) ? var_out($_GET['func']) : "";
$path = tsl($path);
// check if host uses Linux (used for displaying permissions
$isUnixHost = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? false : true);
Expand Down Expand Up @@ -52,7 +52,6 @@ function submitLink($funcNum, $url) {
}
<?php
if (isset($_GET['func'])){
$func = @$_GET['func'];
?>
if(window.opener){
if(typeof window.opener.<?php echo $func; ?> == 'function') {
Expand Down

0 comments on commit cb18457

Please sign in to comment.