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 {
26
26
27
27
export const getIsTelemetryFeatureAvailable = ( ) : boolean => {
28
28
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" ) ;
30
30
}
31
31
32
32
export const initializeTelemetry = ( contextInfo : ExtensionContextInfo ) : TelemetryManager => {
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ export class JdkDownloaderView {
196
196
if ( isString ( availableVersions ) ) {
197
197
const availableVersionsObj = JSON . parse ( availableVersions ) ;
198
198
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 , "" ) ) ;
200
200
LOGGER . log ( `Fetched Oracle JDK versions: ${ jdkVersions } ` ) ;
201
201
202
202
return jdkVersions ;
You can’t perform that action at this time.
0 commit comments