encode user agent in request sent to github to retrieve tags

v1.18.x
Julian Lam 7 years ago
parent 8e19f11a0c
commit 9d8dc6f589

@ -13,7 +13,7 @@ var isPrerelease = /^v?\d+\.\d+\.\d+-.+$/;
function getLatestVersion(callback) {
var headers = {
Accept: 'application/vnd.github.v3+json',
'User-Agent': 'NodeBB Admin Control Panel/' + meta.config.title,
'User-Agent': encodeURIComponent('NodeBB Admin Control Panel/' + meta.config.title),
};
if (versionCacheLastModified) {

Loading…
Cancel
Save