summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2016-12-23 02:24:31 +0100
committerDylan William Hardison <dylan@hardison.net>2016-12-23 02:33:39 +0100
commita11fc4fe979dff00fb394dade34a7efce70eb2ad (patch)
tree0953e96d8e8507e61abe22076b546345e0e6b994
parent1a0c5438e6394e9225720d21de1ac3a6fb524322 (diff)
downloadbugzilla-a11fc4fe979dff00fb394dade34a7efce70eb2ad.tar.gz
bugzilla-a11fc4fe979dff00fb394dade34a7efce70eb2ad.tar.xz
Bug 1325425 - checksetup.pl on windows should ensure $/ is "\r\n"
r=dkl,a=dylan
-rw-r--r--Bugzilla/Install.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm
index b02a3a7e9..e90d545a8 100644
--- a/Bugzilla/Install.pm
+++ b/Bugzilla/Install.pm
@@ -307,6 +307,10 @@ sub create_admin {
my $dbh = Bugzilla->dbh;
my $template = Bugzilla->template;
+ # We must ensure $/ is set to \r\n on windows.
+ # CGI.pm unsets.
+ local $/ = ON_WINDOWS ? "\x0d\x0a" : "\x0a";
+
my $admin_group = new Bugzilla::Group({ name => 'admin' });
my $admin_inheritors =
Bugzilla::Group->flatten_group_membership($admin_group->id);