Pluf Framework

Pluf Framework Commit Details


Date:2009-01-07 03:37:01 (15 years 11 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:ce2227540c6f475719ff638d8c0ae7a51d033f25
Parents: cc9bb7e37d5430450f189b8044243830571ca185
Message:Added a new filter to encode an email address.

Changes:

File differences

src/Pluf/Template.php
285285
286286
287287
288
289
290
291
292
293
294
295
296
297
288298
} else {
return Pluf_Date_Easy($date, null, 2, __('now'), false);
}
}
/**
* Hex encode an email excluding the "mailto:".
*/
function Pluf_Template_safeEmail($email)
{
$email = chunk_split(bin2hex($email), 2, '%');
$email = '%'.substr($email, 0, strlen($email) - 1);
return Pluf_Template::markSafe($email);
}
src/Pluf/Template/Compiler.php
107107
108108
109109
110
110111
111112
112113
'time' => 'Pluf_Template_timeFormat',
'dateago' => 'Pluf_Template_dateAgo',
'timeago' => 'Pluf_Template_timeAgo',
'email' => 'Pluf_Template_safeEmail',
);
/**

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.07082s using 13 queries.