if I searching for a string what is near to an e-mail address (node input type is bbcode and email address encoding is on) then the search modul will show a part of node and the e-mail address will looks like this:

blablabla text blablabla searched string blabla eval(unescape('%64%6f%64...

Comments

naudefj’s picture

Assigned: Unassigned » naudefj
Status: Active » Closed (works as designed)

That's because "Javascript encoding of emails" is enabled. If you don't like it, disable this option and reindex your site.

andrew_kabai’s picture

Yes, I know, it is a usefull option! but is it possible to show the email address in the right format (in case of showing search results) while the email encoding is on?

naudefj’s picture

Not sure. If we can detect that we are busy searching we can render the output differently. However, caching may get in the way.

andrew_kabai’s picture

Hm, ok.
I hope you can fix this problem in the next subversion of bbcode...

Regards

naudefj’s picture

Unfortunately, I wouldn't know how to. If you find a way, please submit a patch.

andrew_kabai’s picture

Unfortunately, I have very beginner skills about drupal module developing and hooking technology, but it looks like we have problem with node_update_index() function.

So maybe we should catch node_invoke_nodeapi($node, 'view', false, false) inside node_update_index() (I don't know it is possible or not) and after it the view functions must return valid html e-mail address link when it called from node_update_index()

Do you have any idea about it?