Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
1c1c8c15
Commit
1c1c8c15
authored
May 21, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 338365: Bugzilla::BugMail calls Param() outside of any function
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=ghendricks, a=justdave
parent
7a4bbc15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
BugMail.pm
Bugzilla/BugMail.pm
+7
-7
No files found.
Bugzilla/BugMail.pm
View file @
1c1c8c15
...
...
@@ -64,13 +64,6 @@ my %rel_names = (REL_ASSIGNEE , "AssignedTo",
my
%
nomail
;
my
$sitespec
=
'@'
.
Param
(
'urlbase'
);
$sitespec
=~
s/:\/\//\./
;
# Make the protocol look like part of the domain
$sitespec
=~
s/^([^:\/]+):(\d+)/$1/
;
# Remove a port number, to relocate
if
(
$2
)
{
$sitespec
=
"-$2$sitespec"
;
# Put the port number back in, before the '@'
}
# This is run when we load the package
if
(
open
(
NOMAIL
,
'<'
,
"$datadir/nomail"
))
{
while
(
<
NOMAIL
>
)
{
...
...
@@ -651,6 +644,13 @@ sub sendMail {
$substs
{
"space"
}
=
" "
;
$substs
{
"changer"
}
=
$values
{
'changer'
};
$substs
{
"changername"
}
=
$values
{
'changername'
};
my
$sitespec
=
'@'
.
Param
(
'urlbase'
);
$sitespec
=~
s/:\/\//\./
;
# Make the protocol look like part of the domain
$sitespec
=~
s/^([^:\/]+):(\d+)/$1/
;
# Remove a port number, to relocate
if
(
$2
)
{
$sitespec
=
"-$2$sitespec"
;
# Put the port number back in, before the '@'
}
if
(
$isnew
)
{
$substs
{
'threadingmarker'
}
=
"Message-ID: <bug-$id-"
.
$user
->
id
.
"$sitespec>"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment