diff --git a/src/en/OInt/tools/Modules/internal/Modules/OPI_Tools.os b/src/en/OInt/tools/Modules/internal/Modules/OPI_Tools.os index c7099b7fd..a98db4ee7 100644 --- a/src/en/OInt/tools/Modules/internal/Modules/OPI_Tools.os +++ b/src/en/OInt/tools/Modules/internal/Modules/OPI_Tools.os @@ -258,8 +258,8 @@ Function SplitURL(Val URL) Export URL = StrReplace(URL, "http://", ""); URL = StrReplace(URL, ":443", ""); - Address = Right(URL, StrLen(URL) - StrFind(URL, "/", SearchDirection.FromStart) + 1); - Server = Left(URL, StrFind(URL, "/", SearchDirection.FromStart) - 1); + Address = Right(URL, StrLen(URL) - StrFind(URL, "/", SearchDirection.FromBegin) + 1); + Server = Left(URL, StrFind(URL, "/", SearchDirection.FromBegin) - 1); Try SSL = New OpenSSLSecureConnection; diff --git a/src/en/OPI/src/CommonModules/OPI_Tools/Module.bsl b/src/en/OPI/src/CommonModules/OPI_Tools/Module.bsl index 7b0357a83..0e13cd48d 100644 --- a/src/en/OPI/src/CommonModules/OPI_Tools/Module.bsl +++ b/src/en/OPI/src/CommonModules/OPI_Tools/Module.bsl @@ -258,8 +258,8 @@ Function SplitURL(Val URL) Export URL = StrReplace(URL, "http://", ""); URL = StrReplace(URL, ":443", ""); - Address = Right(URL, StrLen(URL) - StrFind(URL, "/", SearchDirection.FromStart) + 1); - Server = Left(URL, StrFind(URL, "/", SearchDirection.FromStart) - 1); + Address = Right(URL, StrLen(URL) - StrFind(URL, "/", SearchDirection.FromBegin) + 1); + Server = Left(URL, StrFind(URL, "/", SearchDirection.FromBegin) - 1); Try SSL = New OpenSSLSecureConnection;