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
901cdb79
Commit
901cdb79
authored
Jun 11, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 150802 - default version for bug entry not read from cookies
r=jouni x2
parent
f0f65e37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
enter_bug.cgi
enter_bug.cgi
+8
-2
post_bug.cgi
post_bug.cgi
+0
-3
No files found.
enter_bug.cgi
View file @
901cdb79
...
@@ -300,10 +300,16 @@ $default{'rep_platform'} = pickplatform();
...
@@ -300,10 +300,16 @@ $default{'rep_platform'} = pickplatform();
$vars
->
{
'op_sys'
}
=
\
@legal_opsys
;
$vars
->
{
'op_sys'
}
=
\
@legal_opsys
;
$default
{
'op_sys'
}
=
pickos
();
$default
{
'op_sys'
}
=
pickos
();
# Default version is the last one in the list (hopefully the latest one).
# Posting a bug sets a cookie for the current version, if one exists. Else,
# the default version is the last one in the list (hopefully the latest one).
# Eventually maybe each product should have a "current version" parameter.
# Eventually maybe each product should have a "current version" parameter.
$vars
->
{
'version'
}
=
$::versions
{
$product
}
||
[]
;
$vars
->
{
'version'
}
=
$::versions
{
$product
}
||
[]
;
$default
{
'version'
}
=
$vars
->
{
'version'
}
->
[
$#
{
$vars
->
{
'version'
}}];
if
(
exists
$::COOKIE
{
"VERSION-$product"
}
&&
lsearch
(
$vars
->
{
'version'
},
$::COOKIE
{
"VERSION-$product"
})
!=
-
1
)
{
$default
{
'version'
}
=
$::COOKIE
{
"VERSION-$product"
};
}
else
{
$default
{
'version'
}
=
$vars
->
{
'version'
}
->
[
$#
{
$vars
->
{
'version'
}}];
}
# There must be at least one status in @status.
# There must be at least one status in @status.
my
@status
=
"NEW"
;
my
@status
=
"NEW"
;
...
...
post_bug.cgi
View file @
901cdb79
...
@@ -73,9 +73,6 @@ my $product = $::FORM{'product'};
...
@@ -73,9 +73,6 @@ my $product = $::FORM{'product'};
# Set cookies
# Set cookies
my
$cookiepath
=
Param
(
"cookiepath"
);
my
$cookiepath
=
Param
(
"cookiepath"
);
if
(
exists
$::FORM
{
'product'
})
{
if
(
exists
$::FORM
{
'product'
})
{
print
"Set-Cookie: PLATFORM=$product ; path=$cookiepath ; \
expires=Sun, 30-Jun-2029 00:00:00 GMT\n"
;
if
(
exists
$::FORM
{
'version'
})
{
if
(
exists
$::FORM
{
'version'
})
{
print
"Set-Cookie: VERSION-$product=$::FORM{'version'} ; \
print
"Set-Cookie: VERSION-$product=$::FORM{'version'} ; \
path=$cookiepath ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n"
;
path=$cookiepath ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n"
;
...
...
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