mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-02-13 01:39:26 +00:00
urlencode the . in a url querystring on play (#1293)
* urlencode the . in a url querystring on play * lint * fix for non querystring urls too * lint
This commit is contained in:
@@ -6,7 +6,9 @@ class TaskPlay extends Task {
|
|||||||
super(logger, opts);
|
super(logger, opts);
|
||||||
this.preconditions = TaskPreconditions.Endpoint;
|
this.preconditions = TaskPreconditions.Endpoint;
|
||||||
|
|
||||||
this.url = this.data.url;
|
this.url = this.data.url.includes('?')
|
||||||
|
? this.data.url.split('?')[0] + '?' + this.data.url.split('?')[1].replaceAll('.', '%2E')
|
||||||
|
: this.data.url;
|
||||||
this.seekOffset = this.data.seekOffset || -1;
|
this.seekOffset = this.data.seekOffset || -1;
|
||||||
this.timeoutSecs = this.data.timeoutSecs || -1;
|
this.timeoutSecs = this.data.timeoutSecs || -1;
|
||||||
this.loop = this.data.loop || 1;
|
this.loop = this.data.loop || 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user