Fix something

This commit is contained in:
mkuba50 2019-02-23 23:23:35 +01:00
parent 1667046e84
commit aa53951c2f
2 changed files with 14 additions and 1 deletions

13
get.php
View File

@ -189,6 +189,7 @@ function uupGetFiles(
$newFiles = array();
foreach($filesList as $val) {
$name = uupCleanName($val);
$filesListKeys[] = $name;
if(isset($files[$name])) {
$newFiles[$name] = $files[$name];
@ -197,6 +198,17 @@ function uupGetFiles(
$files = $newFiles;
$filesKeys = array_keys($files);
$filesListKeys = array_unique($filesListKeys);
sort($filesListKeys);
$compare = array_diff($filesListKeys, $filesKeys);
if(count($compare)) {
foreach($compare as $val) {
consoleLogger("Missing file: $val");
}
return array('error' => 'MISSING_FILES');
}
}
if(empty($filesKeys)) {
@ -373,6 +385,7 @@ function uupCleanName($name) {
$replace = array(
'cabs_' => null,
'metadataesd_' => null,
'prss_signed_appx_' => null,
'~31bf3856ad364e35' => null,
'~~.' => '.',
'~.' => '.',

View File

@ -16,7 +16,7 @@ limitations under the License.
*/
function uupApiVersion() {
return '1.20.2';
return '1.20.3';
}
require_once dirname(__FILE__).'/auths.php';