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
c07333d9
Commit
c07333d9
authored
Sep 18, 2014
by
Pami Ketolainen
Committed by
Byron Jones
Sep 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1068521: "Use of uninitialized value" warnings
r=glob,a=glob
parent
af460805
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
CGI.pm
Bugzilla/CGI.pm
+11
-4
process_bug.cgi
process_bug.cgi
+1
-1
No files found.
Bugzilla/CGI.pm
View file @
c07333d9
...
...
@@ -373,10 +373,7 @@ sub param {
if
(
!
scalar
(
@result
)
&&
$self
->
request_method
&&
$self
->
request_method
eq
'POST'
)
{
# Some servers fail to set the QUERY_STRING parameter, which
# causes undef issues
$ENV
{
'QUERY_STRING'
}
=
''
unless
exists
$ENV
{
'QUERY_STRING'
};
@result
=
$self
->
SUPER::
url_param
(
@_
);
@result
=
$self
->
url_param
(
@_
);
}
# Fix UTF-8-ness of input parameters.
...
...
@@ -401,6 +398,14 @@ sub param {
return
$self
->
SUPER::
param
(
@_
);
}
sub
url_param
{
my
$self
=
shift
;
# Some servers fail to set the QUERY_STRING parameter, which
# causes undef issues
$ENV
{
'QUERY_STRING'
}
//
=
''
;
return
$self
->
SUPER::
url_param
(
@_
);
}
sub
_fix_utf8
{
my
$input
=
shift
;
# The is_utf8 is here in case CGI gets smart about utf8 someday.
...
...
@@ -732,6 +737,8 @@ L<CGI|CGI>, L<CGI::Cookie|CGI::Cookie>
=item param
=item url_param
=item header
=back
process_bug.cgi
View file @
c07333d9
...
...
@@ -234,7 +234,7 @@ if (should_set('keywords')) {
}
if
(
should_set
(
'comment'
))
{
my
$is_markdown
=
(
$user
->
settings
->
{
use_markdown
}
->
{
is_enabled
}
&&
$cgi
->
param
(
'use_markdown'
)
eq
'1'
)
?
1
:
0
;
$cgi
->
param
(
'use_markdown'
))
?
1
:
0
;
$set_all_fields
{
comment
}
=
{
body
=>
scalar
$cgi
->
param
(
'comment'
),
...
...
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