fix the smol xss

This commit is contained in:
flash 2018-05-18 03:17:22 +02:00
parent 99b1c644d6
commit e59ea5dfb7

View file

@ -11,54 +11,54 @@
{% set profile_fields = { {% set profile_fields = {
"twitter": { "twitter": {
"title": "Twitter", "title": "Twitter",
"value": profile.user_twitter, "value": profile.user_twitter|escape,
"link": "https://twitter.com/%s", "link": "https://twitter.com/%s",
"format": "@%s", "format": "@%s",
}, },
"osu": { "osu": {
"title": "osu!", "title": "osu!",
"value": profile.user_osu, "value": profile.user_osu|escape,
"link": "https://osu.ppy.sh/users/%s", "link": "https://osu.ppy.sh/users/%s",
}, },
"website": { "website": {
"title": "Website", "title": "Website",
"value": profile.user_website, "value": profile.user_website|escape,
"link": "%s", "link": "%s",
}, },
"youtube": { "youtube": {
"title": "Youtube", "title": "Youtube",
"value": profile.user_youtube, "value": profile.user_youtube|escape,
"link": "https://youtube.com/" ~ (youtube_is_channel_id ? "channel/" : '') ~ "%s", "link": "https://youtube.com/" ~ (youtube_is_channel_id ? "channel/" : '') ~ "%s",
"format": youtube_is_channel_id ? "Channel" : "%s", "format": youtube_is_channel_id ? "Channel" : "%s",
}, },
"steam": { "steam": {
"title": "Steam", "title": "Steam",
"value": profile.user_steam, "value": profile.user_steam|escape,
"link": "https://steamcommunity.com/id/%s", "link": "https://steamcommunity.com/id/%s",
}, },
"twitchtv": { "twitchtv": {
"title": "Twitch.tv", "title": "Twitch.tv",
"value": profile.user_twitchtv, "value": profile.user_twitchtv|escape,
"link": "https://twitch.tv/%s", "link": "https://twitch.tv/%s",
}, },
"lastfm": { "lastfm": {
"title": "Last.fm", "title": "Last.fm",
"value": profile.user_lastfm, "value": profile.user_lastfm|escape,
"link": "http://last.fm/user/%s", "link": "http://last.fm/user/%s",
}, },
"github": { "github": {
"title": "Github", "title": "Github",
"value": profile.user_github, "value": profile.user_github|escape,
"link": "https://github.com/%s", "link": "https://github.com/%s",
}, },
"skype": { "skype": {
"title": "Skype", "title": "Skype",
"value": profile.user_skype, "value": profile.user_skype|escape,
"link": "skype:%s?userinfo", "link": "skype:%s?userinfo",
}, },
"discord": { "discord": {
"title": "Discord", "title": "Discord",
"value": profile.user_discord, "value": profile.user_discord|escape,
}, },
} %} } %}