Deprecated: Assigning the return value of new by reference is deprecated in /home/bluestat/public_html/source/index.php on line 477
From c1c9cfee1ab8f8c4fc65e79ff2dc0008ba859d3f Mon Sep 17 00:00:00 2001
From: Robert Sesek
Date: Sat, 6 Aug 2011 17:57:50 -0400
Subject: [PATCH] Assume an empty PATH_INFO is the root URL.
---
http/root_controller.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/http/root_controller.php b/http/root_controller.php
index 43d16da..6fdc682 100644
--- a/http/root_controller.php
+++ b/http/root_controller.php
@@ -92,7 +92,11 @@ class RootController
// to:
// http://example.com/webapp/index.php/user/view/42
// ... which then becomes accessible from PATH_INFO.
- $url = $this->request->data['_SERVER']['PATH_INFO'];
+ $data = $this->request->data['_SERVER'];
+ if (isset($data['PATH_INFO']))
+ $url = $data['PATH_INFO'];
+ else
+ $url = '/';
if ($url[0] == '/')
$url = substr($url, 1);
--
1.7.11.3