Changeset 11901
- Timestamp:
- 10/02/08 13:33:35 (5 years ago)
- Files:
-
- branches/1.2/UPGRADE_TO_1_2 (modified) (1 diff)
- branches/1.2/lib/util/sfBrowserBase.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/UPGRADE_TO_1_2
r11899 r11901 624 624 This refactor must not introduce backward incompatibility with symfony 1.1. 625 625 626 The browser classes now add the `HTTP_REFERER` header for each request. 627 626 628 Tests 627 629 ----- branches/1.2/lib/util/sfBrowserBase.class.php
r11497 r11901 255 255 $_SERVER['SCRIPT_FILENAME'] = '/index.php'; 256 256 $_SERVER['QUERY_STRING'] = $queryString; 257 258 if ($this->stackPosition >= 1) 259 { 260 $_SERVER['HTTP_REFERER'] = sprintf('http%s://%s%s', isset($this->defaultServerArray['HTTPS']) ? 's' : '', $this->hostname, $this->stack[$this->stackPosition - 1]['uri']); 261 } 262 257 263 foreach ($this->vars as $key => $value) 258 264 { … … 800 806 } 801 807 802 $uri = substr($uri, strpos($uri, 'index.php') + strlen('index.php'));808 $uri = preg_replace('#^https?\://[^/]+/#', '/', $uri); 803 809 } 804 810 $uri = str_replace('/index.php', '', $uri);