Decode uri components in badge text

pull/287/head
Amio 2019-06-10 20:10:31 +08:00
rodzic 31f0ca54fd
commit 978359074e
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -44,6 +44,9 @@ export function badgenServe (handlers: BadgenServeHandlers): Function {
color: 'grey'
}
params.subject = decodeURIComponent(params.subject)
params.status = decodeURIComponent(params.status)
if (query.style === undefined && req.headers.host.startsWith('flat.')) {
query.style = 'flat'
}