SITE_URL constant incorrect on windows servers
Bug #1057018 reported by
Uranium235
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pluck CMS |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
Even though the root directory and https issues have been fixed/addressed in the development branch, windows servers will still not function properly as dirname() return a backslash instead of a forward slash for the document root on windows systems.
fix:
$protocol = 'http';
if(isset(
$protocol .= 's';
$directory = rtrim(dirname(
define('SITE_URL', $protocol.
Related branches
lp:~uranium235/pluck-cms/pluck-cms
- Anders G. Jørgensen: Approve
-
Diff: 72 lines (+14/-10)3 files modifieddata/inc/editpage.php (+8/-7)
data/inc/functions.admin.php (+4/-1)
data/inc/functions.all.php (+2/-2)
description: | updated |
Changed in pluck-cms: | |
importance: | Undecided → Medium |
To post a comment you must log in.
fixed in lp:~uranium235/pluck-cms/pluck-cms