Fix broken languages link

This especially broke the link when the language is C++ because the + characters weren't encoded properly
This commit is contained in:
Shakeel Mohamed 2016-06-03 01:51:00 -07:00
parent 72af4ba508
commit 5302ed4f4b

View File

@ -353,7 +353,7 @@ var run = function() {
popularity: languages[lang],
toString: function() {
return '<a href="https://github.com/search?q=user%3A'
+ username + '&l=' + this.name + '">'
+ username + '&l=' + encodeURIComponent(this.name) + '">'
+ this.name + '</a>';
}
});