From 3347c275328b6788f798b197e9dbbc33683f1710 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 26 Aug 2013 20:52:25 -0700 Subject: [PATCH] Condor interface: fix bug if job names have '#' (URL-escape args in GET HTTP) --- lib/remote_submit.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/remote_submit.cpp b/lib/remote_submit.cpp index c4418f437a..2c54a439df 100644 --- a/lib/remote_submit.cpp +++ b/lib/remote_submit.cpp @@ -28,6 +28,7 @@ #include #include "parse.h" +#include "url.h" #include "remote_submit.h" @@ -551,9 +552,10 @@ int get_output_file( const char* dst_path, string &error_msg ) { - char url[1024]; + char url[1024], job_name_esc[1024]; + escape_url(job_name, job_name_esc, sizeof(job_name_esc)); sprintf(url, "%sget_output.php?cmd=workunit_file&auth_str=%s&wu_name=%s&file_num=%d", - project_url, authenticator, job_name, file_num + project_url, authenticator, job_name_esc, file_num ); //printf("fetching %s to %s\n", url, dst_path); int retval = do_http_get(url, dst_path);