From f71aafb990ca560b39970d4161f3a6b471beb5ed Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Thu, 7 Mar 2013 11:55:08 -0500
Subject: [PATCH] Use util method - get_path_info()

---
 ajax.php     | 2 +-
 api/http.php | 2 +-
 scp/ajax.php | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ajax.php b/ajax.php
index 5210b628b..a629af639 100644
--- a/ajax.php
+++ b/ajax.php
@@ -30,5 +30,5 @@ $dispatcher = patterns('',
         url_get('^client', 'client')
     ))
 );
-print $dispatcher->resolve($_SERVER['PATH_INFO']);
+print $dispatcher->resolve($ost->get_path_info());
 ?>
diff --git a/api/http.php b/api/http.php
index 0fc32444a..90926d1e5 100644
--- a/api/http.php
+++ b/api/http.php
@@ -26,5 +26,5 @@ $dispatcher = patterns('',
         );
 
 # Call the respective function
-print $dispatcher->resolve($_SERVER['PATH_INFO']);
+print $dispatcher->resolve($ost->get_path_info());
 ?>
diff --git a/scp/ajax.php b/scp/ajax.php
index e4100f4e3..0f0771d37 100644
--- a/scp/ajax.php
+++ b/scp/ajax.php
@@ -27,7 +27,7 @@ require('staff.inc.php');
 ini_set('display_errors','0'); //Disable error display
 ini_set('display_startup_errors','0');
 
-//TODO: disable direct access via the browser? i,e All request must have REFER? 
+//TODO: disable direct access via the browser? i,e All request must have REFER?
 if(!defined('INCLUDE_DIR'))	Http::response(500, 'Server configuration error');
 
 require_once INCLUDE_DIR.'/class.dispatcher.php';
@@ -65,5 +65,5 @@ $dispatcher = patterns('',
 );
 
 # Call the respective function
-print $dispatcher->resolve($_SERVER['PATH_INFO']);
+print $dispatcher->resolve($ost->get_path_info());
 ?>
-- 
GitLab