Sanitize percents
This commit is contained in:
8
get.php
8
get.php
@ -22,6 +22,8 @@ function createUupConvertPackage(
|
||||
|
||||
$type = $esd ? 'esd' : 'wim';
|
||||
|
||||
$winUrl = str_replace("%", "%%", $url);
|
||||
|
||||
$currDir = dirname(__FILE__).'/..';
|
||||
$time = gmdate("Y-m-d H:i:s T", time());
|
||||
|
||||
@ -134,7 +136,7 @@ echo.
|
||||
$downloadapp
|
||||
:DOWNLOAD_UUPS
|
||||
echo Retrieving aria2 script for the UUP set...
|
||||
"%aria2%" --no-conf --async-dns=false --console-log-level=warn --log-level=info --log="aria2_download.log" -o"%aria2Script%" --allow-overwrite=true --auto-file-renaming=false "$url"
|
||||
"%aria2%" --no-conf --async-dns=false --console-log-level=warn --log-level=info --log="aria2_download.log" -o"%aria2Script%" --allow-overwrite=true --auto-file-renaming=false "$winUrl"
|
||||
if %ERRORLEVEL% GTR 0 call :DOWNLOAD_ERROR & exit /b 1
|
||||
echo.
|
||||
|
||||
@ -368,6 +370,8 @@ CONFIG;
|
||||
|
||||
//Create aria2 download package only
|
||||
function createAria2Package($url, $archiveName, $app = null) {
|
||||
$winUrl = str_replace("%", "%%", $url);
|
||||
|
||||
$currDir = dirname(__FILE__).'/..';
|
||||
$time = gmdate("Y-m-d H:i:s T", time());
|
||||
|
||||
@ -448,7 +452,7 @@ echo.
|
||||
$downloadapp
|
||||
:DOWNLOAD_UUPS
|
||||
echo Retrieving aria2 script for the UUP set...
|
||||
"%aria2%" --no-conf --async-dns=false --console-log-level=warn --log-level=info --log="aria2_download.log" -o"%aria2Script%" --allow-overwrite=true --auto-file-renaming=false "$url"
|
||||
"%aria2%" --no-conf --async-dns=false --console-log-level=warn --log-level=info --log="aria2_download.log" -o"%aria2Script%" --allow-overwrite=true --auto-file-renaming=false "$winUrl"
|
||||
if %ERRORLEVEL% GTR 0 call :DOWNLOAD_ERROR & exit /b 1
|
||||
echo.
|
||||
|
||||
|
Reference in New Issue
Block a user