Sanitize percents
This commit is contained in:
8
get.php
8
get.php
@ -22,6 +22,8 @@ function createUupConvertPackage(
|
|||||||
|
|
||||||
$type = $esd ? 'esd' : 'wim';
|
$type = $esd ? 'esd' : 'wim';
|
||||||
|
|
||||||
|
$winUrl = str_replace("%", "%%", $url);
|
||||||
|
|
||||||
$currDir = dirname(__FILE__).'/..';
|
$currDir = dirname(__FILE__).'/..';
|
||||||
$time = gmdate("Y-m-d H:i:s T", time());
|
$time = gmdate("Y-m-d H:i:s T", time());
|
||||||
|
|
||||||
@ -134,7 +136,7 @@ echo.
|
|||||||
$downloadapp
|
$downloadapp
|
||||||
:DOWNLOAD_UUPS
|
:DOWNLOAD_UUPS
|
||||||
echo Retrieving aria2 script for the UUP set...
|
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
|
if %ERRORLEVEL% GTR 0 call :DOWNLOAD_ERROR & exit /b 1
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
@ -368,6 +370,8 @@ CONFIG;
|
|||||||
|
|
||||||
//Create aria2 download package only
|
//Create aria2 download package only
|
||||||
function createAria2Package($url, $archiveName, $app = null) {
|
function createAria2Package($url, $archiveName, $app = null) {
|
||||||
|
$winUrl = str_replace("%", "%%", $url);
|
||||||
|
|
||||||
$currDir = dirname(__FILE__).'/..';
|
$currDir = dirname(__FILE__).'/..';
|
||||||
$time = gmdate("Y-m-d H:i:s T", time());
|
$time = gmdate("Y-m-d H:i:s T", time());
|
||||||
|
|
||||||
@ -448,7 +452,7 @@ echo.
|
|||||||
$downloadapp
|
$downloadapp
|
||||||
:DOWNLOAD_UUPS
|
:DOWNLOAD_UUPS
|
||||||
echo Retrieving aria2 script for the UUP set...
|
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
|
if %ERRORLEVEL% GTR 0 call :DOWNLOAD_ERROR & exit /b 1
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user