Skip to content

Commit

Permalink
pgbackrest 백업복구 워크명 한글 입력방지
Browse files Browse the repository at this point in the history
  • Loading branch information
YYura committed Nov 14, 2024
1 parent 6cea56c commit 45a8356
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,14 @@ function fn_ssh_connection(){
function remote_chg_chk(txt){
remoteConn = "Fail";
}
function removeKoreanCharacters(input) {
if (/[\u3131-\u318E\uAC00-\uD7A3]+/.test(input.value)) {
showSwalIcon('<spring:message code="encrypt_msg.msg22" />', '<spring:message code="common.close" />', '', 'error');
}
input.value = input.value.replace(/[\u3131-\u318E\uAC00-\uD7A3]+/g, '');
}
</script>

Expand Down Expand Up @@ -1000,7 +1008,7 @@ function fn_ssh_connection(){
</label>

<div class="col-sm-8">
<input type="text" class="form-control form-control-sm" maxlength="20" id="ins_wrk_nm_bckr" name="ins_wrk_nm_bckr" placeholder="20<spring:message code='message.msg188'/>" onchange="fn_ins_wrk_bckr_nmChk();" onblur="this.value=this.value.trim()" tabindex=1 required />
<input type="text" class="form-control form-control-sm" maxlength="20" id="ins_wrk_nm_bckr" name="ins_wrk_nm_bckr" placeholder="20<spring:message code='message.msg188'/>" onchange="fn_ins_wrk_bckr_nmChk();" onblur="this.value=this.value.trim()" oninput="removeKoreanCharacters(this)" tabindex=1 required />
</div>

<div class="col-sm-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,14 @@
table_db.tables().header().to$().find('th:eq(1)').css('min-width', '470px');
}
function removeKoreanCharacters(input) {
if (/[\u3131-\u318E\uAC00-\uD7A3]+/.test(input.value)) {
showSwalIcon('<spring:message code="encrypt_msg.msg22" />', '<spring:message code="common.close" />', '', 'error');
}
input.value = input.value.replace(/[\u3131-\u318E\uAC00-\uD7A3]+/g, '');
}
</script>

<%@include file="../cmmn/passwordConfirm.jsp"%>
Expand Down Expand Up @@ -807,7 +815,7 @@
</label>

<div class="col-sm-8">
<input type="text" class="form-control form-control-sm" maxlength="20" id="restore_nm" name="restore_nm" onkeyup="fn_checkWord(this,20)" placeholder="20<spring:message code='message.msg188'/>"" onchange="fn_restoreNm_Chg();" onblur="this.value=this.value.trim()" tabindex=1 required />
<input type="text" class="form-control form-control-sm" maxlength="20" id="restore_nm" name="restore_nm" onkeyup="fn_checkWord(this,20)" placeholder="20<spring:message code='message.msg188'/>"" onchange="fn_restoreNm_Chg();" onblur="this.value=this.value.trim()" oninput="removeKoreanCharacters(this)" tabindex=1 required />
</div>
<div class="col-sm-2">
Expand Down

0 comments on commit 45a8356

Please sign in to comment.