File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export namespace Telemetry {
2626
2727 export const getIsTelemetryFeatureAvailable = ( ) : boolean => {
2828 const TELEMETRY_API = TelemetryConfiguration . getInstance ( ) ?. getApiConfig ( ) ;
29- return TELEMETRY_API ?. baseUrl != null && TELEMETRY_API ?. baseUrl . trim ( ) . length > 0 ;
29+ return TELEMETRY_API ?. baseUrl != null && TELEMETRY_API ?. baseUrl . trim ( ) . length > 0 && ( TELEMETRY_API ?. baseUrl . trim ( ) . startsWith ( "https://" ) || process . env [ 'oracle_oracleJava_allow_httpTelemetryServer' ] === "true" ) ;
3030 }
3131
3232 export const initializeTelemetry = ( contextInfo : ExtensionContextInfo ) : TelemetryManager => {
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ export class JdkDownloaderView {
196196 if ( isString ( availableVersions ) ) {
197197 const availableVersionsObj = JSON . parse ( availableVersions ) ;
198198 if ( availableVersionsObj ?. items ) {
199- const jdkVersions = availableVersionsObj ?. items ?. map ( ( version : any ) => version . jdkDetails . jdkVersion ) ;
199+ const jdkVersions = availableVersionsObj ?. items ?. map ( ( version : any ) => String ( version . jdkDetails . jdkVersion ) . replace ( / [ ^ a - z A - Z 0 - 9 _ . + - ] / g , "" ) ) ;
200200 LOGGER . log ( `Fetched Oracle JDK versions: ${ jdkVersions } ` ) ;
201201
202202 return jdkVersions ;
You can’t perform that action at this time.
0 commit comments