웹취약점처리 ,css수정
This commit is contained in:
parent
14e0ae34d0
commit
5346533b9f
@ -1,5 +1,8 @@
|
|||||||
package nlib.cmm.crypto;
|
package nlib.cmm.crypto;
|
||||||
|
|
||||||
|
import java.io.UnsupportedEncodingException;
|
||||||
|
import java.security.InvalidKeyException;
|
||||||
|
|
||||||
import org.apache.commons.codec.binary.Base64;
|
import org.apache.commons.codec.binary.Base64;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -47,16 +50,16 @@ public class AriaCrypto {
|
|||||||
*
|
*
|
||||||
* @param value
|
* @param value
|
||||||
* @return
|
* @return
|
||||||
|
* @throws InvalidKeyException
|
||||||
*/
|
*/
|
||||||
public static String encode(String value) {
|
public static String encode(String value){
|
||||||
|
|
||||||
String ret = null;
|
String ret = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ret = AriaUtil.ariaEncrypt(value);
|
ret = AriaUtil.ariaEncrypt(value);
|
||||||
} catch(Exception e) {
|
} catch(UnsupportedEncodingException | InvalidKeyException e) {
|
||||||
log.error("ERROR at AriaCrypto.encode : " + e.toString());
|
log.error("ERROR at AriaCrypto.encode : " + e.toString());
|
||||||
e.printStackTrace();
|
|
||||||
ret = null;
|
ret = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -12,10 +12,14 @@ import java.io.IOException;
|
|||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.security.InvalidKeyException;
|
import java.security.InvalidKeyException;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import nlib.cmm.service.NlibProperty;
|
import nlib.cmm.service.NlibProperty;
|
||||||
|
|
||||||
public class AriaUtil {
|
public class AriaUtil {
|
||||||
|
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(AriaUtil.class);
|
||||||
public static final String PRIVATE_KEY = NlibProperty.getProperty("crypto.aria.defaultKey");
|
public static final String PRIVATE_KEY = NlibProperty.getProperty("crypto.aria.defaultKey");
|
||||||
|
|
||||||
public static String ariaEncrypt(String str, String privateKey)
|
public static String ariaEncrypt(String str, String privateKey)
|
||||||
@ -327,9 +331,9 @@ public class AriaUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}catch(NumberFormatException e){
|
}catch(NumberFormatException e){
|
||||||
//
|
log.error("ERROR at AriaCrypto.hexToByteArray : " + e.toString());
|
||||||
}catch(Exception e) {
|
}catch(Exception e) {
|
||||||
//
|
log.error("ERROR at AriaCrypto.hexToByteArray : " + e.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -198,7 +198,7 @@ public class DataApiVO {
|
|||||||
int pageLastIndex = 0;
|
int pageLastIndex = 0;
|
||||||
try {
|
try {
|
||||||
pageLastIndex = Integer.parseInt(getInfoItem(XML_EL_NAME_PAGE_LAST_INDEX, "0"));
|
pageLastIndex = Integer.parseInt(getInfoItem(XML_EL_NAME_PAGE_LAST_INDEX, "0"));
|
||||||
} catch(Exception e) {
|
} catch(NumberFormatException e) {
|
||||||
log.error("getPageLastIndex > " + e.toString());
|
log.error("getPageLastIndex > " + e.toString());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -214,7 +214,7 @@ public class DataApiVO {
|
|||||||
int pageSize = 0;
|
int pageSize = 0;
|
||||||
try {
|
try {
|
||||||
pageSize = Integer.parseInt(getInfoItem(XML_EL_NAME_PAGE_SIZE, "0"));
|
pageSize = Integer.parseInt(getInfoItem(XML_EL_NAME_PAGE_SIZE, "0"));
|
||||||
} catch(Exception e) {
|
} catch(NumberFormatException e) {
|
||||||
log.error("getPageSize > " + e.toString());
|
log.error("getPageSize > " + e.toString());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -230,7 +230,7 @@ public class DataApiVO {
|
|||||||
int recordTotCount = 0;
|
int recordTotCount = 0;
|
||||||
try {
|
try {
|
||||||
recordTotCount = Integer.parseInt(getInfoItem(XML_EL_NAME_RECORD_TOT_COUNT, "0"));
|
recordTotCount = Integer.parseInt(getInfoItem(XML_EL_NAME_RECORD_TOT_COUNT, "0"));
|
||||||
} catch(Exception e) {
|
} catch(NumberFormatException e) {
|
||||||
log.error("getRecordTotCount > " + e.toString());
|
log.error("getRecordTotCount > " + e.toString());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1795,7 +1795,7 @@ transform: rotate(45deg);
|
|||||||
.pop-change .inner .change p.text {font-size:12px;text-align: left;margin:10px 0px 30px;}
|
.pop-change .inner .change p.text {font-size:12px;text-align: left;margin:10px 0px 30px;}
|
||||||
.pop-change .inner .change p #passwdMatch {width:auto;text-align:left;font-size:12px;display: inline-block;margin:0px 0px 0px 0px;vertical-align: middle;color:#3f8f4a;}
|
.pop-change .inner .change p #passwdMatch {width:auto;text-align:left;font-size:12px;display: inline-block;margin:0px 0px 0px 0px;vertical-align: middle;color:#3f8f4a;}
|
||||||
.pop-change .inner .change p #passwdMatch-chk {display: inline-block;width:15px;height:15px;position: absolute;top:2px;right:0px;background: url(/images/icon/icon-checked-tab.png) no-repeat center;background-size: 15px;z-index: 99;}
|
.pop-change .inner .change p #passwdMatch-chk {display: inline-block;width:15px;height:15px;position: absolute;top:2px;right:0px;background: url(/images/icon/icon-checked-tab.png) no-repeat center;background-size: 15px;z-index: 99;}
|
||||||
.pop-change .inner .change p #passwdMatch.fail {color:red;}
|
.pop-change .inner .change p #passwdNotMatch.fail {color:red;}
|
||||||
.pop-change .inner .btn {width:70%;padding:20px 15% 40px;line-height: normal}
|
.pop-change .inner .btn {width:70%;padding:20px 15% 40px;line-height: normal}
|
||||||
.pop-change .inner .btn-box .btn {width:auto;padding:10px 25px;}
|
.pop-change .inner .btn-box .btn {width:auto;padding:10px 25px;}
|
||||||
.pop-change .inner .btn-box .btn.btn-color {width:170px;}
|
.pop-change .inner .btn-box .btn.btn-color {width:170px;}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user