Commit 58a9182f authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 315317: DBI placeholders break AppendComment's default timestamp - Patch by…

Bug 315317: DBI placeholders break AppendComment's default timestamp - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
parent 684cbddd
......@@ -23,7 +23,7 @@
# Bradley Baetz <bbaetz@acm.org>
# Dave Miller <justdave@bugzilla.org>
# Max Kanat-Alexander <mkanat@bugzilla.org>
# Frdric Buclin <LpSolit@gmail.com>
# Frédéric Buclin <LpSolit@gmail.com>
# Lance Larsh <lance.larsh@oracle.com>
package Bugzilla::Bug;
......@@ -722,7 +722,7 @@ sub AppendComment {
# Use the date/time we were given if possible (allowing calling code
# to synchronize the comment's timestamp with those of other records).
$timestamp = "NOW()" unless $timestamp;
$timestamp ||= $dbh->selectrow_array('SELECT NOW()');
$comment =~ s/\r\n/\n/g; # Handle Windows-style line endings.
$comment =~ s/\r/\n/g; # Handle Mac-style line endings.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment