Skip to content

Commit bdef002

Browse files
author
Niclas Kjäll-Ohlsson
committed
Issue with job names when saving
1 parent 528d616 commit bdef002

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build/fusebase.jar

22 Bytes
Binary file not shown.

src/FuseBaseRESTAPI.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3374,7 +3374,7 @@ public void scheduler_jobs_create(FuseBaseRESTAPICall c) throws Exception {
33743374

33753375
String
33763376
name = this.replaceURL(c.httpRequest().parameter("name")),
3377-
scriptName = c.httpRequest().parameter("scriptName");
3377+
scriptName = this.replaceURL(c.httpRequest().parameter("scriptName"));
33783378
long
33793379
initialDelay = Long.parseLong(c.httpRequest().parameter("initialDelay")),
33803380
period = Long.parseLong(c.httpRequest().parameter("period"));

web/js/FuseBaseWebClient.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ function FuseBaseClient($http) {
10301030

10311031
$http({
10321032
method: 'post',
1033-
url: '/api/scripts/upload?name=' + script.name,
1033+
url: '/api/scripts/upload?name=' + encodeURIComponent(script.name),
10341034
data: script.source
10351035
}).success(
10361036
function(response) {
@@ -1186,8 +1186,8 @@ function FuseBaseClient($http) {
11861186
var me = this;
11871187

11881188
var queryString =
1189-
'name=' + job.name +
1190-
'&scriptName=' + job.scriptName +
1189+
'name=' + encodeURIComponent(job.name) +
1190+
'&scriptName=' + encodeURIComponent(job.scriptName) +
11911191
'&timeUnit=' + job.timeUnit +
11921192
'&initialDelay=' + job.initialDelay +
11931193
'&period=' + job.period;

0 commit comments

Comments
 (0)