Browse Source

- Fix Routes when URL rewriting is disabled

- Fix HTTPS BOSH in Admin
pull/16/head
Jaussoin Timothée 13 years ago
parent
commit
f234cfc7b8
  1. 3
      app/widgets/Admin/Admin.php
  2. 6
      system/Route.php

3
app/widgets/Admin/Admin.php

@ -105,6 +105,9 @@ class Admin extends WidgetBase {
curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
// Fire !
$rs = array();

6
system/Route.php

@ -24,11 +24,11 @@ class Route extends ControllerBase {
'server' => array('s'),
);
if($_SERVER['HTTP_MOD_REWRITE'])
if($_SERVER['HTTP_MOD_REWRITE']) {
$q = $this->fetch_get('query');
else
$this->find($q);
} else
$q = $this->fetch_get('q');
$this->find($q);
}
private function find($q) {

Loading…
Cancel
Save