mirror of
https://gitee.com/openharmony/applications_dlp_manager
synced 2024-11-23 01:49:46 +00:00
commit
4a2685d5f0
@ -433,7 +433,7 @@ function sendDlpFileOpenProperties() {
|
||||
}
|
||||
|
||||
function isValidPath(path: string): Boolean {
|
||||
if (path.indexOf('/./') !== -1 || path.indexOf('/../') !== -1) {
|
||||
if (path.indexOf('./') !== -1 || path.indexOf('../') !== -1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -503,8 +503,8 @@ struct encryptedSharing {
|
||||
|
||||
getScrollHeight(newValue: SizeOptions) {
|
||||
const height = newValue.height as number;
|
||||
this.scrollHeight = height - Constants.SHARE_BUTTON_COLUMN_BOTTOM - Constants.SHARE_TITLE_HEAD_HEIGHT
|
||||
- Constants.SHARE_TITLE_HEAD_MARGIN_TOP - Constants.SHARE_TITLE_HEAD_MARGIN_BOTTOM;
|
||||
this.scrollHeight = height - Constants.SHARE_BUTTON_COLUMN_BOTTOM - Constants.SHARE_TITLE_HEAD_HEIGHT -
|
||||
Constants.SHARE_TITLE_HEAD_MARGIN_TOP - Constants.SHARE_TITLE_HEAD_MARGIN_BOTTOM;
|
||||
if (this.scrollHeight > Constants.SHARE_TEXTAREA_MAX_HEIGHT) {
|
||||
this.scrollHeight = Constants.SHARE_TEXTAREA_MAX_HEIGHT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user