forked from uup-dump/api
Fix error reporting of get.php, update packs metadata
This commit is contained in:
parent
71ee367367
commit
c4fb38e6f5
@ -76,11 +76,11 @@ function uupFetchUpd(
|
||||
return array('error' => 'UNKNOWN_COMBINATION');
|
||||
}
|
||||
|
||||
if($build < 15063 || $build > 65536) {
|
||||
if($build < 9841 || $build > PHP_INT_MAX-1) {
|
||||
return array('error' => 'ILLEGAL_BUILD');
|
||||
}
|
||||
|
||||
if($minor < 0 || $minor > 65536) {
|
||||
if($minor < 0 || $minor > PHP_INT_MAX-1) {
|
||||
return array('error' => 'ILLEGAL_MINOR');
|
||||
}
|
||||
|
||||
|
4
get.php
4
get.php
@ -121,6 +121,10 @@ function uupGetFiles(
|
||||
$files = uupGetOfflineFiles($info);
|
||||
}
|
||||
|
||||
if(isset($files['error'])) {
|
||||
return $files;
|
||||
}
|
||||
|
||||
$baseless = preg_grep('/^baseless_|-baseless\....$/i', array_keys($files));
|
||||
foreach($baseless as $val) {
|
||||
if(isset($files[$val])) unset($files[$val]);
|
||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
function uupApiVersion() {
|
||||
return '1.19.0';
|
||||
return '1.19.1';
|
||||
}
|
||||
|
||||
require_once dirname(__FILE__).'/auths.php';
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user