Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sencha-filestorage
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
sencha-filestorage
Commits
135624ea
Commit
135624ea
authored
Jun 11, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Improving security by added -limit_to xxx to all im_opt_val calls
parent
da1764b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
file-add.tcl
www/file-add.tcl
+1
-1
No files found.
www/file-add.tcl
View file @
135624ea
...
...
@@ -33,7 +33,7 @@ set user_id [im_rest_cookie_auth_user_id]
set
package_id
[
db_string package
"select min(package_id) from apm_packages where package_key = 'file-storage'"
]
set
mime_type
[
cr_filename_to_mime_type -create --
$upload
_file
]
set
folder_id
[
im_fs_content_folder_for_object -object_id
$ticket
_id
]
ns_log Notice
"file-add: user_id=
$user
_id, ticket_id=
$ticket
_id, mime_type=
$mime
_type, folder_id=
$folder
_id,
upload_file=
[
im_opt_val upload_file
]
,
title=
$title
, upload_file.tmpfile=
${upload_file.tmpfile}
"
ns_log Notice
"file-add: user_id=
$user
_id, ticket_id=
$ticket
_id, mime_type=
$mime
_type, folder_id=
$folder
_id, title=
$title
, upload_file.tmpfile=
${upload_file.tmpfile}
"
set
permission_p
[
permission::permission_p
\
-object_id
$folder
_id
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment