[pmwiki-users] fox / encryption / templates
Jon Haupt
jhaupt at gmail.com
Sat Sep 15 18:49:01 CDT 2007
On 9/15/07, Jon Haupt <jhaupt at gmail.com> wrote:
> However, if I create a similar (:md5:) markup, it
> unfortunately breaks the template (changing the (:md5 {$$email}:) to
> crypted text before I've managed to make a comment). Any suggestions
> how I might avoid this problem?
Well, I just thought of one way of doing this, but it's sort of shoddy.
$group = PageVar($pagename, '$Group');
if ($group != 'Site') {
SDV($ROSPatterns['/\\(:md5\\s+([^\\s:=]+).*?:\\)/e'], "md5(PSS('$1'))");
}
I wouldn't post to the Site group anyway, so it does work. If there's
a prettier way of doing it, though, it'd probably be better.
Jon
More information about the pmwiki-users
mailing list