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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
ca036186
Commit
ca036186
authored
Apr 22, 1999
by
terry%netscape.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug where the long descriptions of bugs had a variety of
newline characters at the end, depending on the operating system of the browser that submitted the text.
parent
a044ffe9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
globals.pl
globals.pl
+7
-1
post_bug.cgi
post_bug.cgi
+6
-1
No files found.
globals.pl
View file @
ca036186
...
...
@@ -78,7 +78,13 @@ sub FetchOneColumn {
sub
AppendComment
{
my
(
$bugid
,
$who
,
$comment
)
=
(
@_
);
$comment
=~
s/\r\n/\n/
;
# Get rid of windows-style line endings.
open
(
DEBUG
,
">/tmp/debug"
);
print
DEBUG
"A $comment"
;
$comment
=~
s/\r\n/\n/g
;
# Get rid of windows-style line endings.
print
DEBUG
"B $comment"
;
$comment
=~
s/\r/\n/g
;
# Get rid of mac-style line endings.
print
DEBUG
"C $comment"
;
close
DEBUG
;
if
(
$comment
=~
/^\s*$/
)
{
# Nothin' but whitespace.
return
;
}
...
...
post_bug.cgi
View file @
ca036186
...
...
@@ -105,7 +105,12 @@ foreach my $field (@bug_fields) {
$query
.=
SqlQuote
(
$::FORM
{
$field
})
.
",\n"
;
}
$query
.=
"now(), "
.
SqlQuote
(
$::FORM
{
'comment'
})
.
" )\n"
;
my
$comment
=
$::FORM
{
'comment'
};
$comment
=~
s/\r\n/\n/g
;
# Get rid of windows-style line endings.
$comment
=~
s/\r/\n/g
;
# Get rid of mac-style line endings.
$comment
=
trim
(
$comment
);
$query
.=
"now(), "
.
SqlQuote
(
$comment
)
.
" )\n"
;
my
%
ccids
;
...
...
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