Permalink
Browse files

Addresses SourceForge Bug #110170. All double-quotes in submission co…

…mments

are now converted to single quotes upon insertion into the database.
Browsers just don't handle double-quotes well enough to allow there use
via an input-box that's supposed to display its own content.
  • Loading branch information...
1 parent ccde36f commit aec48991346818c5b7c1ffa6fd726468eb474ff1 @Xliff Xliff committed Jul 28, 2000
Showing with 3 additions and 0 deletions.
  1. +1 −0 plugins/Submit/submit.pl
  2. +1 −0 public_html/submit.pl
  3. +1 −0 themes/slashcode/htdocs/submit.pl
View
@@ -243,6 +243,7 @@ sub rmSub {
delete $sub{note};
$sub{-note} = 'NULL';
}
+ $sub{comment} =~ s/\"/\'/g if $sub{comment};
sqlUpdate("submissions", \%sub,
"subid=" . $I{dbh}->quote($n));
View
@@ -243,6 +243,7 @@ sub rmSub {
delete $sub{note};
$sub{-note} = 'NULL';
}
+ $sub{comment} =~ s/\"/\'/g if $sub{comment};
sqlUpdate("submissions", \%sub,
"subid=" . $I{dbh}->quote($n));
@@ -243,6 +243,7 @@ sub rmSub {
delete $sub{note};
$sub{-note} = 'NULL';
}
+ $sub{comment} =~ s/\"/\'/g if $sub{comment};
sqlUpdate("submissions", \%sub,
"subid=" . $I{dbh}->quote($n));

0 comments on commit aec4899

Please sign in to comment.