Changeset 19341 for branches/camp/camp-2_5-E/data/class/SC_Response.php
- Timestamp:
- 2010/11/07 01:31:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camp/camp-2_5-E/data/class/SC_Response.php
r19149 r19341 111 111 112 112 function sendRedirect(String $location){ 113 113 if (preg_match("/(" . preg_quote(SITE_URL, '/') 114 . "|" . preg_quote(SSL_URL, '/') . ")/", $location)) { 115 116 $netURL = new Net_URL($location); 117 if (!empty($_SERVER['QUERY_STRING'])) { 118 $netURL->addRawQueryString($_SERVER['QUERY_STRING']); 119 } 120 121 $session = SC_SessionFactory::getInstance(); 122 if (SC_MobileUserAgent::isMobile() || $session->useCookie() == false) { 123 $netURL->addQueryString(session_name(), session_id()); 124 } 125 126 $netURL->addQueryString(TRANSACTION_ID_NAME, SC_Helper_Session_Ex::getToken()); 127 header("Location: " . $netURL->getURL()); 128 exit; 129 } 130 return false; 114 131 } 115 132
Note: See TracChangeset
for help on using the changeset viewer.
