mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 11:09:22 +02:00
Opkman: Trim URL before parsing to prevent "Invalid protocol" error.
git-svn-id: trunk@53715 -
This commit is contained in:
parent
5b8fe624b4
commit
bc7f03b15a
@ -468,7 +468,7 @@ begin
|
|||||||
if (not FNeedToBreak) then
|
if (not FNeedToBreak) then
|
||||||
begin
|
begin
|
||||||
JSON := '';
|
JSON := '';
|
||||||
if GetUpdateInfo(SerializablePackages.Items[I].DownloadURL, JSON) then
|
if GetUpdateInfo(Trim(SerializablePackages.Items[I].DownloadURL), JSON) then
|
||||||
begin
|
begin
|
||||||
if FUpdatePackage.LoadFromJSON(JSON) then
|
if FUpdatePackage.LoadFromJSON(JSON) then
|
||||||
AssignPackageData(SerializablePackages.Items[I])
|
AssignPackageData(SerializablePackages.Items[I])
|
||||||
|
Loading…
Reference in New Issue
Block a user