diff options
author | wei <> | 2006-07-28 07:56:03 +0000 |
---|---|---|
committer | wei <> | 2006-07-28 07:56:03 +0000 |
commit | fbf05a159bc1a688940c16dc304eaaf140188b01 (patch) | |
tree | 9346b49526b9ef908e59039244b2f3c220f5a530 /demos/time-tracker/index.php | |
parent | ff6db29dff9b4778b97d2234d08cdcc10770562a (diff) |
Time-Tracker Demo: Escape html entities in output.
Diffstat (limited to 'demos/time-tracker/index.php')
-rw-r--r-- | demos/time-tracker/index.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/demos/time-tracker/index.php b/demos/time-tracker/index.php index 0f8f412a..69e6b5c5 100644 --- a/demos/time-tracker/index.php +++ b/demos/time-tracker/index.php @@ -14,6 +14,13 @@ if(!is_writable($runtimePath)) require_once($frameworkPath);
+function h($text)
+{
+ $app = Prado::getApplication()->getGlobalization();
+ $charset = $app ? $app->getCharset() : 'UTF-8';
+ return htmlentities($text, ENT_QUOTES, $charset);
+}
+
$application=new TApplication;
$application->run();
|