Skip to content
Browse files

(experimental) extended Smarty_Security's allowed php_functions array…

… (backend entries.inc.tpl)
  • Loading branch information...
1 parent 9163510 commit 7e41ce666e4355f90b00faf4d3b023d70421bd3f @ophian ophian committed Feb 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/serendipity_smarty_class.inc.php
View
4 include/serendipity_smarty_class.inc.php
@@ -1,4 +1,4 @@
-<?php // (experimental) serendipity_smarty_class.inc.php 2012-01-03 14:11 Ian
+<?php // (experimental) serendipity_smarty_class.inc.php 2012-02-20 10:26 Ian
// define secure_dir and trusted_dirs for Serendipity_Smarty_Security_Policy class.
@define('S9Y_TEMPLATE_FALLBACK', $serendipity['serendipityPath'] . $serendipity['templatePath'] . 'default');
@@ -10,7 +10,7 @@
class Serendipity_Smarty_Security_Policy extends Smarty_Security
{
// these are the allowed functions only. - default as is
- public $php_functions = array('isset', 'empty', 'count', 'sizeof', 'in_array', 'is_array', 'time', 'nl2br');
+ public $php_functions = array('isset', 'empty', 'count', 'sizeof', 'in_array', 'is_array', 'time', 'nl2br', 'serendipity_categoryURL', 'serendipity_archiveURL');
// to disable all PHP functions
#public $php_functions = null;

0 comments on commit 7e41ce6

Please sign in to comment.
Something went wrong with that request. Please try again.