public
Description: The ultra-lightweight ultra-flexible blogging engine with a fetish for birds and misspellings.
Homepage: http://chyrp.net/
Clone URL: git://github.com/vito/chyrp.git
Click here to lend your support to: chyrp and make a donation at www.pledgie.com !
* YAML dumper: If the value is a non-numeric non-empty string, wrap it in 
quotes.
* Searching for / with clean URLs leads to a server 404, so don't redirect to 
the clean URL for that.
vito (author)
Sat Nov 01 14:24:20 -0700 2008
commit  2d34862cfd13d2e80e5071cbf182cfb56ac31cae
tree    b118093c7aee302fef888729d02548b3321247b9
parent  86dea3a645805040ac1380a4666232ea7c2f465e
...
316
317
318
319
 
 
 
320
321
322
...
316
317
318
 
319
320
321
322
323
324
0
@@ -316,7 +316,9 @@
0
             fallback($_GET['query'], "");
0
             $config = Config::current();
0
 
0
-            if ($config->clean_urls and substr_count($_SERVER['REQUEST_URI'], "?"))
0
+            if ($config->clean_urls and
0
+                substr_count($_SERVER['REQUEST_URI'], "?") and
0
+                !substr_count($_SERVER['REQUEST_URI'], "%2F")) # Searches with / and clean URLs = server 404
0
                 redirect("search/".urlencode($_GET['query'])."/");
0
 
0
             if (empty($_GET['query']))
...
193
194
195
196
 
197
198
199
...
193
194
195
 
196
197
198
199
0
@@ -193,7 +193,7 @@ class Horde_Yaml_Dumper
0
     {
0
         // Don't do anything if wordwrap is set to 0
0
         if (! $this->_options['wordwrap']) {
0
-            return $value;
0
+            return (is_string($value) and !is_numeric($value) and !empty($value)) ? '"'.$value.'"' : $value ;
0
         }
0
 
0
         if (strlen($value) > $this->_options['wordwrap']) {

Comments