From: terry%mozilla.org <> Date: Wed, 20 Oct 1999 04:27:40 +0000 (+0000) Subject: Need to value_quote() things that go into VALUE attributes in HTML. X-Git-Tag: bugzilla-2.8~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d45b54f93429cb6942795db791f3c203df720124;p=thirdparty%2Fbugzilla.git Need to value_quote() things that go into VALUE attributes in HTML. --- diff --git a/editcomponents.cgi b/editcomponents.cgi index 322cd2c275..83381fe7e6 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -110,21 +110,26 @@ sub EmitFormElements ($$$$$) my ($product, $component, $initialowner, $initialqacontact, $description) = @_; print " Component:\n"; - print " \n"; - print " \n"; + print " \n"; + print " \n"; print "\n"; print " Description:\n"; - print " \n"; + print " \n"; print "\n"; print " Initial owner:\n"; - print " \n"; + print " \n"; if (Param('useqacontact')) { print "\n"; print " Initial QA contact:\n"; - print " \n"; + print " \n"; } } @@ -522,8 +527,10 @@ one."; print "
\n"; print "\n"; print "\n"; - print "\n"; - print "\n"; + print "\n"; + print "\n"; print "
"; PutTrailer($localtrailer); @@ -632,10 +639,14 @@ if ($action eq 'edit') { print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; print "\n"; print "\n"; diff --git a/editproducts.cgi b/editproducts.cgi index 293c6967d0..c70e809946 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -66,6 +66,9 @@ sub EmitFormElements ($$$$) { my ($product, $description, $milestoneurl, $disallownew) = @_; + $product = value_quote($product); + $description = value_quote($description); + print " Product:\n"; print " \n"; print "\n"; @@ -74,6 +77,7 @@ sub EmitFormElements ($$$$) print " \n"; if (Param('usetargetmilestone')) { + $milestoneurl = value_quote($milestoneurl); print "\n"; print " Milestone URL:\n"; print " \n"; @@ -397,7 +401,8 @@ one."; print "
\n"; print "\n"; print "\n"; - print "\n"; + print "\n"; print "
"; PutTrailer($localtrailer); @@ -544,9 +549,12 @@ if ($action eq 'edit') { print "\n\n"; - print "\n"; - print "\n"; - print "\n"; + print "\n"; + print "\n"; + print "\n"; print "\n"; print "\n"; print "\n"; diff --git a/editversions.cgi b/editversions.cgi index 7ac8032b20..09196d2f8a 100755 --- a/editversions.cgi +++ b/editversions.cgi @@ -100,8 +100,10 @@ sub EmitFormElements ($$) my ($product, $version) = @_; print " Version:\n"; - print " \n"; - print " \n"; + print " \n"; + print " \n"; } @@ -383,8 +385,10 @@ one."; print "
\n"; print "\n"; print "\n"; - print "\n"; - print "\n"; + print "\n"; + print "\n"; print "
"; PutTrailer($localtrailer); @@ -467,7 +471,8 @@ if ($action eq 'edit') { print "\n"; - print "\n"; + print "\n"; print "\n"; print "\n";