summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/index/lastlog.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-14 18:54:22 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-14 18:54:22 +0200
commite79bdedb819415792eea49de7483885046d2a368 (patch)
tree9931fa389c1459347593155dd09a7c2cf3ecc009 /public/assets/js/lib/views/index/lastlog.js
parentafd20e776ba207be9c4a00d29cb61dd3ea760eef (diff)
change password form working
Diffstat (limited to 'public/assets/js/lib/views/index/lastlog.js')
-rw-r--r--public/assets/js/lib/views/index/lastlog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/index/lastlog.js b/public/assets/js/lib/views/index/lastlog.js
index 02b3cca..7a738b7 100644
--- a/public/assets/js/lib/views/index/lastlog.js
+++ b/public/assets/js/lib/views/index/lastlog.js
@@ -29,7 +29,7 @@ var LastLog = View.extend({
parse: function(user){
if (Date.now()/1000 - user.lastseen > 86400 * 5 *10) return ''
var t = this.template
- .replace(/{{username}}/g, user.username)
+ .replace(/{{username}}/g, sanitize(user.username))
.replace(/{{age}}/g, get_age(user.lastseen) )
.replace(/{{age_class}}/g, carbon_date(user.lastseen) )
.trim()