diff options
-rw-r--r-- | Bugzilla/Install.pm | 4 |
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); |