]> git.mjollnir.org Git - s9y.git/commitdiff
Fix spartacus issue, enhance PHP5.2 filtering, insert Tamil language
authorgarvinhicking <garvinhicking>
Tue, 7 Feb 2006 14:22:12 +0000 (14:22 +0000)
committergarvinhicking <garvinhicking>
Tue, 7 Feb 2006 14:22:12 +0000 (14:22 +0000)
docs/NEWS
include/compat.inc.php
include/plugin_api.inc.php
serendipity_config.inc.php

index d649907c447ab7ddadc13db0d4ea1907349fa539..de44bc40301c835906e17a21a517c1d6b2966168 100644 (file)
--- 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)
index 3c910c346d9f00a2d75d46a74899714d33fd5137..966d962b9b21b3028e47a3bd52f30635e9a1e1c3 100644 (file)
@@ -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);
+    }
 }
 
 /*
index 55668aa9a592b7d942659aab27accd73f11ed498..1a3e32bbc3e828aa38d7e4eace6671cad6f90515 100644 (file)
@@ -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();
index cb35614a9f04562c0679fe2b6e0ea2c86d6c6374..90b2dacca88b93dd4897c3ef715ac340b229a766 100644 (file)
@@ -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',