From 7711caf5ac2fd810a8d3d89a01d74387628a9f23 Mon Sep 17 00:00:00 2001 From: hunaniangstudio <891863891@qq.com> Date: Fri, 11 Aug 2023 10:40:19 +0800 Subject: [PATCH] fix: patch the vulnerability CVE-2022-32969. fix: patch the vulnerability CVE-2022-32969 fix: patch the vulnerability CVE-2022-32969. --- src/ui/components/Input/index.tsx | 7 ++++--- src/ui/pages/Account/CreateHDWalletScreen.tsx | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ui/components/Input/index.tsx b/src/ui/components/Input/index.tsx index 7606e768..3702ae01 100644 --- a/src/ui/components/Input/index.tsx +++ b/src/ui/components/Input/index.tsx @@ -1,4 +1,5 @@ import bitcore from 'bitcore-lib'; +import { isNull } from 'lodash'; import React, { CSSProperties, useEffect, useState } from 'react'; import { SATS_DOMAIN, UNISAT_DOMAIN } from '@/shared/constant'; @@ -65,12 +66,12 @@ const $baseInputStyle: CSSProperties = Object.assign({}, $textPresets.regular, { }); function PasswordInput(props: InputProps) { - const { placeholder, style: $inputStyleOverride, ...rest } = props; + const { placeholder, containerStyle, style: $inputStyleOverride, ...rest } = props; const [type, setType] = useState<'password' | 'text'>('password'); return ( -
+
{ handleEventPaste(e, index); @@ -254,6 +254,8 @@ function Step1_Import({ }} onKeyUp={(e) => handleOnKeyUp(e)} autoFocus={index == curInputIndex} + preset={'password'} + placeholder="" />