Fix language cookie with clean urls and gitphp running at the root of the domain
Fix language cookie with clean urls and gitphp running at the root of the domain

--- a/include/controller/ControllerBase.class.php
+++ b/include/controller/ControllerBase.class.php
@@ -159,6 +159,8 @@
 		$locale = null;
 
 		$baseurl = GitPHP_Util::BaseUrl();
+		if (empty($baseurl) && $this->config->GetValue('cleanurl'))
+			$baseurl = '/';
 
 		if (!empty($this->params['lang'])) {
 			/*

comments