- Move Sanitize to PhpMyAdmin namespace - Move SavedSearches to PhpMyAdmin namespace - Move Scripts to PhpMyAdmin namespace - Move ServerStatusData to PhpMyAdmin namespace - Move Sql to PhpMyAdmin namespace - Move StorageEngine to PhpMyAdmin namespace - Move SubPartition to PhpMyAdmin namespace - Move SysInfoLinux to PhpMyAdmin namespace - Move SysInfoSunOS to PhpMyAdmin namespace - Move SysInfoWINNT to PhpMyAdmin namespace - Move SysInfo to PhpMyAdmin namespace - Move SystemDatabase to PhpMyAdmin namespace Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
36 lines
742 B
PHP
36 lines
742 B
PHP
<?php
|
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
/**
|
|
* hold PMA\libraries\twig\SanitizeExtension class
|
|
*
|
|
* @package PMA\libraries\twig
|
|
*/
|
|
namespace PMA\libraries\twig;
|
|
|
|
use Twig_Extension;
|
|
use Twig_SimpleFunction;
|
|
|
|
/**
|
|
* Class SanitizeExtension
|
|
*
|
|
* @package PMA\libraries\twig
|
|
*/
|
|
class SanitizeExtension extends Twig_Extension
|
|
{
|
|
/**
|
|
* Returns a list of functions to add to the existing list.
|
|
*
|
|
* @return Twig_SimpleFunction[]
|
|
*/
|
|
public function getFunctions()
|
|
{
|
|
return array(
|
|
new Twig_SimpleFunction(
|
|
'Sanitize_escapeJsString',
|
|
'PhpMyAdmin\Sanitize::escapeJsString',
|
|
array('is_safe' => array('html'))
|
|
),
|
|
);
|
|
}
|
|
}
|