Closed Menteroth closed 4 years ago
When does this happen exactly?
When I click 'export config'.
I've noticed that if I use some special characters like '#' in the servername the export function does not work due to the lack of escaping in the URL.
All my server names have |
in them.
Not sure how to do this but I think "${this.server.settings.serverName}" needs to be encoded by functions like encodeURIComponent() :
Yes the server name can be anything which doesn't work for URLs. The backend doesn't care about the URL, only the id that is passed as a parameter is used to export the server (see https://github.com/assetto-corsa-web/accweb/blob/master/api/server.go#L199). So we can change that to something else...
Is this something I can fix locally or just wait for next update?
Wait for the next release.