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 !
Handle clean URLs even if the feature is disabled. Bonus: This fixes the problem 
with gibberish URLs not showing the 404 page.
vito (author)
Thu Sep 04 18:39:26 -0700 2008
commit  6511a9936cdfe0596873ee5ffd2b528f345ad919
tree    f012145527b0e0134408ddd4a502de3e2916801f
parent  351a1a8fd43618ddcf5b8227c64a1217df797efd
...
119
120
121
122
123
124
125
126
127
...
132
133
134
135
136
137
138
139
140
...
119
120
121
 
 
 
122
123
124
...
129
130
131
 
 
 
132
133
134
0
@@ -119,9 +119,6 @@
0
       global $page;
0
       $config = Config::current();
0
 
0
-      if (!$config->clean_urls)
0
-        fallback($_GET['action'], "index");
0
-
0
       $this->action =& $_GET['action'];
0
 
0
       # Parse the current URL and extract information.
0
@@ -132,9 +129,6 @@
0
       $this->request = preg_replace("/".$this->safe_path."/", "", $_SERVER['REQUEST_URI'], 1);
0
       $this->arg = explode("/", trim($this->request, "/"));
0
 
0
-      if (ADMIN or JAVASCRIPT or AJAX or XML_RPC or !$config->clean_urls)
0
-        return;
0
-
0
       if (empty($this->arg[0])) # If they're just at /, don't bother with all this.
0
         return $this->action = "index";
0
 

Comments