From: garvinhicking Date: Tue, 7 Feb 2006 14:22:12 +0000 (+0000) Subject: Fix spartacus issue, enhance PHP5.2 filtering, insert Tamil language X-Git-Tag: 1.0~109 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=200beae1152b7f049e8dca9d952f4aae4265bd73;p=s9y.git Fix spartacus issue, enhance PHP5.2 filtering, insert Tamil language --- diff --git a/docs/NEWS b/docs/NEWS index d649907..de44bc4 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.0-beta2 () ------------------------------------------------------------------------ + * Fixed spartacus DB error on postgreSQL installations, thanks to + volkris! (garvinhicking) + * Added partial Tamil translation by Selva * Fix Text_Wiki problems with UTF-8 charsets (garvinhicking) diff --git a/include/compat.inc.php b/include/compat.inc.php index 3c910c3..966d962 100644 --- a/include/compat.inc.php +++ b/include/compat.inc.php @@ -103,6 +103,12 @@ if (extension_loaded('filter') && ini_get('filter.default') !== FILTER_UNSAFE_RA foreach ($_GET as $key => $value) { $_GET[$key] = input_get(INPUT_GET, $key, FILTER_UNSAFE_RAW); } + foreach ($_COOKIE as $key => $value) { + $_COOKIE[$key] = input_get(INPUT_COOKIE, $key, FILTER_UNSAFE_RAW); + } + foreach ($_SESSION as $key => $value) { + $_SESSION[$key] = input_get(INPUT_SESSION, $key, FILTER_UNSAFE_RAW); + } } /* diff --git a/include/plugin_api.inc.php b/include/plugin_api.inc.php index 55668aa..1a3e32b 100644 --- a/include/plugin_api.inc.php +++ b/include/plugin_api.inc.php @@ -678,6 +678,10 @@ class serendipity_plugin_api { if (!isset($data['stackable']) || empty($data['stackable'])) { $data['stackable'] = '0'; } + + if (!isset($data['last_modified'])) { + $data['last_modified'] = $lastModified; + } // Only insert data keys that exist in the DB. $insertdata = array(); diff --git a/serendipity_config.inc.php b/serendipity_config.inc.php index cb35614..90b2dac 100644 --- a/serendipity_config.inc.php +++ b/serendipity_config.inc.php @@ -100,7 +100,8 @@ $serendipity['languages'] = array('en' => 'English', 'zh' => 'Simplified Chinese (GB2312)', 'cn' => 'Simplified Chinese (UTF-8)', 'ja' => 'Japanese', - 'ko' => 'Korean'); + 'ko' => 'Korean', + 'ta' => 'Tamil'); /* Available Calendars */ $serendipity['calendars'] = array('gregorian' => 'Gregorian',