Changeset 232
- Timestamp:
- 07/24/07 23:07:13 (1 year ago)
- Files:
-
- trunk/api/Pluf/Template.php (modified) (1 diff)
- trunk/api/Pluf/Template/Compiler.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/api/Pluf/Template.php
r201 r232 205 205 } 206 206 207 /** 208 * modifier plugin : escape an url 209 * 210 * @param string $string input date string 211 * @param boolean $$replaceSlash replace %2F by / ; or not 212 * @return string|void 213 */ 214 function Pluf_Template_escurl($string, $replaceSlash = true) { 215 $string = rawurlencode($string); 216 if ($replaceSlash) { 217 return str_replace('%2F', '/', $string); 218 } 219 return $string; 220 } 221 207 222 ?> trunk/api/Pluf/Template/Compiler.php
r201 r232 90 90 'escxml' => 'htmlspecialchars', 91 91 'strip_tags' => 'strip_tags', 92 'escurl' => ' rawurlencode',92 'escurl' => 'Pluf_Template_escurl', 93 93 'capitalize' => 'ucwords', 94 94 'debug' => 'var_export',
