Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/http-foundation/ApacheRequest.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
33 { | 33 { |
34 $baseUrl = $this->server->get('SCRIPT_NAME'); | 34 $baseUrl = $this->server->get('SCRIPT_NAME'); |
35 | 35 |
36 if (false === strpos($this->server->get('REQUEST_URI'), $baseUrl)) { | 36 if (false === strpos($this->server->get('REQUEST_URI'), $baseUrl)) { |
37 // assume mod_rewrite | 37 // assume mod_rewrite |
38 return rtrim(dirname($baseUrl), '/\\'); | 38 return rtrim(\dirname($baseUrl), '/\\'); |
39 } | 39 } |
40 | 40 |
41 return $baseUrl; | 41 return $baseUrl; |
42 } | 42 } |
43 } | 43 } |