Skip to content

Commit

Permalink
1.40 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kalcaddle committed May 15, 2023
1 parent 21a012b commit 7cc2c3c
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 16 deletions.
4 changes: 4 additions & 0 deletions app/controller/explorer/auth.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ public function checkShare($shareID,$sourceID,$method){

// 自己协作分享的内容; 权限同自己拥有的权限;
if($shareInfo['userID'] == USER_ID){
$sourceInfo = $shareInfo['sourceInfo'];
if( $sourceInfo['targetType'] == 'user' && $sourceInfo['targetID'] == USER_ID ){
return $this->canCheckRole($method);
}
return $this->checkAuthMethod($shareInfo['sourceInfo']['auth']['authValue'],$method);
}

Expand Down
7 changes: 7 additions & 0 deletions app/controller/install/index.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ public function check(){
if( in_array(ACTION, $actions) ){
ActionCall(ACTION);exit;
}

// 安装路径合法性检测; 不允许[, ;%][*][&=+%#?{}]; 允许(_!@$[]()-./); 需要转义([]@$)
$uri = str_replace(HOST,'',APP_HOST);$matchArr = array();
if($uri && !preg_match("/^[a-zA-Z0-9_!@$\[\]\(\)\-\.\/]*$/",$uri,$matchArr)){
show_tips("App path cann't has special chars<br/>(程序路径不支持包含特殊符号,请尽量使用英文字母及数字)<pre>".$uri.'</pre>');
}

$this->tpl = CONTROLLER_DIR . 'install/static/';
$value = array('installPath' => INSTALL_PATH);
$this->values = array_merge($value, $this->installFast());
Expand Down
1 change: 1 addition & 0 deletions app/controller/install/static/package.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@
"type": "password",
"value": "",
"attr": {"placeholder": LNG['common.password']},
"desc": LNG['explorer.share.timeDesc'],
"display": LNG['common.password'],
},

Expand Down
2 changes: 1 addition & 1 deletion app/sdks/archiveLib/bin/data.bin

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
define('KOD_VERSION','1.40');
define('KOD_VERSION_BUILD','02');
define('KOD_VERSION_BUILD','03');
4 changes: 2 additions & 2 deletions static/app/dist/api.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/app/dist/lib.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/app/dist/main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/app/dist/sdk.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/app/dist/vendor.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/style/dist/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/style/dist/sdk.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/style/lib/main.css

Large diffs are not rendered by default.

0 comments on commit 7cc2c3c

Please sign in to comment.