aboutsummaryrefslogtreecommitdiff
path: root/captain/external.f90
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2021-06-29 16:06:44 -0400
committerJeffrey Armstrong <jeff@approximatrix.com>2021-06-29 16:06:44 -0400
commitcd4a5891b8e2a019fdfda7512d6490e075628292 (patch)
tree8012dc7dc52f17632f5b429dea79709e55ab96c4 /captain/external.f90
parentd282a7e283a1704cdde2649c7caf130fb923051a (diff)
downloadlevitating-cd4a5891b8e2a019fdfda7512d6490e075628292.tar.gz
levitating-cd4a5891b8e2a019fdfda7512d6490e075628292.zip
Tokens are now checked for file uploads. Fixed major buffer bugs in status reporting.
Diffstat (limited to 'captain/external.f90')
-rw-r--r--captain/external.f9016
1 files changed, 15 insertions, 1 deletions
diff --git a/captain/external.f90 b/captain/external.f90
index edbe997..f5ba409 100644
--- a/captain/external.f90
+++ b/captain/external.f90
@@ -685,19 +685,33 @@ contains
function external_request_titan(req) result(resp)
use server_response
use special_filenames
+ use query_utilities
+ use security
use logging
implicit none
type(titan_request), intent(in)::req
type(response)::resp
+ type(query)::q
+
character(len=:), pointer::fullpath
character(12)::job_text, task_text
integer::job_id, task_num
+ logical::proceed_to_create_filename
+
character(64)::msg
- fullpath => get_full_filename_from_request(req)
+ fullpath => null()
+
+ proceed_to_create_filename = .false.
+
+ proceed_to_create_filename = validate_titan_token(req%token)
+
+ if(proceed_to_create_filename) then
+ fullpath => get_full_filename_from_request(req)
+ end if
if(associated(fullpath)) then