Force usage of lower case names for files

This commit is contained in:
mkuba50 2018-06-14 20:38:34 +02:00
parent bce954d9dc
commit 7143b4e8c3
2 changed files with 3 additions and 5 deletions

View File

@ -244,6 +244,7 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
$newName = preg_replace('/^cabs_|~31bf3856ad364e35/i', '', $name); $newName = preg_replace('/^cabs_|~31bf3856ad364e35/i', '', $name);
$newName = preg_replace('/~~\.|~\./', '.', $newName); $newName = preg_replace('/~~\.|~\./', '.', $newName);
$newName = preg_replace('/~/', '-', $newName); $newName = preg_replace('/~/', '-', $newName);
$newName = strtolower($newName);
$files[$newName] = $temp; $files[$newName] = $temp;
} }
@ -277,10 +278,6 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
if(isset($files[$val.'.esd'])) { if(isset($files[$val.'.esd'])) {
if(isset($files[$val.'.cab'])) unset($files[$val.'.cab']); if(isset($files[$val.'.cab'])) unset($files[$val.'.cab']);
} }
if(isset($files[$val.'.ESD'])) {
if(isset($files[$val.'.cab'])) unset($files[$val.'.cab']);
}
} }
unset($removeFiles); unset($removeFiles);
@ -381,6 +378,7 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
$name = preg_replace('/~31bf3856ad364e35/', '', $val); $name = preg_replace('/~31bf3856ad364e35/', '', $val);
$name = preg_replace('/~~\.|~\./', '.', $name); $name = preg_replace('/~~\.|~\./', '.', $name);
$name = preg_replace('/~/', '-', $name); $name = preg_replace('/~/', '-', $name);
$name = strtolower($name);
$newFiles[$name] = $files[$name]; $newFiles[$name] = $files[$name];
} }

View File

@ -16,7 +16,7 @@ limitations under the License.
*/ */
function uupApiVersion() { function uupApiVersion() {
return '1.15.0'; return '1.15.1';
} }
function uupApiPrintBrand() { function uupApiPrintBrand() {