Skip to content

Commit

Permalink
1.20 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kalcaddle committed May 25, 2021
1 parent 846098e commit 5f47ad8
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 24 deletions.
2 changes: 1 addition & 1 deletion app/autoload.php

Large diffs are not rendered by default.

16 changes: 4 additions & 12 deletions app/controller/user/setting.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,19 +225,11 @@ public function decodePwd($password) {
* 用户头像上传
*/
public function setHeadImage() {
$file = $this->in['path'];
$userID = $this->user['userID'];
$fileInfo = IO::info($file);
if(!$fileInfo ||
!in_array($fileInfo['ext'],$this->imageExt) ||
$fileInfo['targetType'] != 'system' ||
$fileInfo['createUser']['userID'] != USER_ID
){
show_json(LNG('user.unAuthFile'),false);
$link = Input::get('link', 'require');
if(strpos($link, APP_HOST) != 0) {
show_json(LNG('common.illegalRequest'), false);
}

$link = Action('explorer.share')->linkFile($file);
if(!$link) show_json(null, false);
$userID = USER_ID;
$link = str_replace(APP_HOST, './', $link);
if(!$this->model->userEdit($userID, array("avatar" => $link))) {
show_json(LNG('explorer.upload.error'), false);
Expand Down
2 changes: 1 addition & 1 deletion app/function/file.function.php
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ function is_text_file($ext){
'vtt','filters','cer','reg','config','pem','srt','ass','lrc','opf','ncx',
'classpath','mymetadata','jsdtscope','project','tern-project','tld','iml','sln',
'gitattributes','mf','name','container','lock','applescript','mvnw','apple-app-site-association',
'magnet','sample','example','http','puml','plantuml'
'magnet','sample','example','http','puml','plantuml','plist',
);
return in_array($ext,$extArray);
}
Expand Down
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/vendor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/style/dist/main.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 5f47ad8

Please sign in to comment.