Browse files

Merge pull request #2086 from bnchdrff/cleanse-npm-values

escape rendered npm package info
  • Loading branch information...
2 parents f798e28 + 44062ae commit ca8dce18408ed0e9249b9fe41f6b580b91109e8a @JohnMcLear JohnMcLear committed Feb 17, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/static/js/admin/plugins.js
View
2 src/static/js/admin/plugins.js
@@ -81,7 +81,7 @@ $(document).ready(function () {
if(attr == "name"){ // Hack to rewrite URLS into name
row.find(".name").html("<a target='_blank' title='Plugin details' href='https://npmjs.org/package/"+plugin['name']+"'>"+plugin['name'].substr(3)+"</a>"); // remove 'ep_'
}else{
- row.find("." + attr).html(plugin[attr]);
+ row.find("." + attr).text(plugin[attr]);
}
}
row.find(".version").html( plugin.version );

0 comments on commit ca8dce1

Please sign in to comment.