mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/api: encode spaces (and others) in URLs
This commit is contained in:
@ -176,7 +176,8 @@ class Api extends events.EventTarget {
|
||||
}
|
||||
|
||||
_getFullUrl(url) {
|
||||
return (config.apiUrl + '/' + url).replace(/([^:])\/+/g, '$1/');
|
||||
return (config.apiUrl + '/' + encodeURI(url))
|
||||
.replace(/([^:])\/+/g, '$1/');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user