mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Merging the updated Limesurvey 1.92+ branch of queXS to trunk
This commit is contained in:
@@ -62,7 +62,7 @@ if (empty($_SESSION) || !isset($_SESSION['fieldname']))
|
||||
}
|
||||
else die('Invalid filename');
|
||||
|
||||
$sJSON = $_SESSION[$fieldname];
|
||||
$sJSON = $_SESSION[$sFieldname];
|
||||
$aFiles = json_decode(stripslashes($sJSON),true);
|
||||
|
||||
if(substr($sFilename,0,3)=='fu_'){
|
||||
@@ -78,7 +78,7 @@ if (empty($_SESSION) || !isset($_SESSION['fieldname']))
|
||||
$iFileIndex++;
|
||||
}
|
||||
if ($found==true) unset($aFiles[$iFileIndex]);
|
||||
$_SESSION[$fieldname] = json_encode($aFiles);
|
||||
$_SESSION[$sFieldname] = ls_json_encode($aFiles);
|
||||
}
|
||||
|
||||
if (@unlink($sFileDir.$sFilename))
|
||||
@@ -88,4 +88,4 @@ if (empty($_SESSION) || !isset($_SESSION['fieldname']))
|
||||
else
|
||||
echo $clang->gT('Oops, There was an error deleting the file');
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user