Impossibilité d'upload avec token (pb d'username)

This commit is contained in:
xdrm-brackets 2016-04-21 11:34:45 +02:00
parent a1b5f1c576
commit 46bfb58b9c
2 changed files with 7 additions and 3 deletions

View File

@ -19,6 +19,10 @@
* *
*/ */
private static function simpleFile($prefix, $extension, $file){ private static function simpleFile($prefix, $extension, $file){
// Si on est pas connecté, on retourne une erreur -> impossible via token
if( !connected() ) return ManagerError::PermissionError;
/* [0] On formatte les entrées /* [0] On formatte les entrées
=========================================================*/ =========================================================*/
$prefix = htmlspecialchars($prefix); $prefix = htmlspecialchars($prefix);