decodeURIComponent emails for filtering.

This commit is contained in:
Nicolas Stepien 2012-07-03 20:09:05 +02:00
parent 3c4dac5c4d
commit 372981c46d
2 changed files with 3 additions and 2 deletions

View File

@ -686,7 +686,7 @@
email: function(post) {
var mail;
if (mail = $('.useremail', post.el)) {
return mail.href.slice(7);
return decodeURIComponent(mail.href.slice(7));
}
return false;
},

View File

@ -544,7 +544,8 @@ Filter =
email: (post) ->
if mail = $ '.useremail', post.el
# remove 'mailto:'
return mail.href[7..]
# decode %20 into space for example
return decodeURIComponent mail.href[7..]
false
subject: (post) ->
$('.postInfo .subject', post.el).textContent or false