CyCoreSystems / ari

Golang Asterisk REST Interface (ARI) library
Apache License 2.0
180 stars 74 forks source link

Escape strings in endpoint paths #159

Open Naapperas opened 12 months ago

Naapperas commented 12 months ago

While looking at the source code for recordings, I noticed that key ids(which are the recording names) are being placed directly on endpoint URLs without being escaped. This can cause errors when, for example, the recording name is itself a file path: this would lead to an HTTP call to /recordings/live/something/else/name, which is obviously wrong.

Ulexus commented 8 months ago

Definitely sounds like a bug.