Version 1.0-beta2 ()
------------------------------------------------------------------------
+ * Added PHP 5.1.3 filter awareness (Tobias Schlitt)
+
+ * Properly sort template listings alphabetically, if using themes
+ in subdirectories (garvinhicking)
+
* Add new plugin API method "performConfig" for performing expensive
configuration options that shall not impact the usual blog
performance. Enhance mailentry plugin to send mails depending
$_SERVER = &$HTTP_SERVER_VARS;
}
+if (extension_loaded('filter') && ini_get('filter.default') !== FILTER_UNSAFE_RAW) {
+ foreach ($_POST as $key => $value) {
+ $_POST[$key] = input_get(INPUT_POST, $key, FILTER_UNSAFE_RAW);
+ }
+ foreach ($_GET as $key => $value) {
+ $_GET[$key] = input_get(INPUT_GET, $key, FILTER_UNSAFE_RAW);
+ }
+}
+
/*
* Avoid magic_quotes_gpc issues
* courtesy of iliaa@php.net
while (($file = readdir($cdir)) !== false) {
if (is_dir($serendipity['serendipityPath'] . $serendipity['templatePath'] . $dir . $file) && !ereg('^(\.|CVS)', $file) && !file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $dir . $file . '/inactive.txt')) {
if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $dir . $file . '/info.txt')) {
- $rv[] = $dir . $file;
+ $key = strtolower($file);
+ if (isset($rv[$key])) {
+ $key = $dir . $key;
+ }
+ $rv[$key] = $dir . $file;
} else {
$temp = serendipity_fetchTemplates($dir . $file . '/');
if (count($temp) > 0) {
}
}
closedir($cdir);
- natcasesort($rv);
+ ksort($rv);
return $rv;
}