Quote output parameters used in <input> tags, otherwise empty variables will end up incorrectly pulling in the / from the end

of a <input /> tag
This commit is contained in:
Alexander Nicolaysen Sørnes
2006-12-01 02:55:09 +00:00
committed by WineHQ
parent 74c9f1d22b
commit 79582b050a

View File

@@ -540,7 +540,7 @@ class Version {
echo html_frame_start("Version Form", "90%", "", 0); echo html_frame_start("Version Form", "90%", "", 0);
echo "<table width='100%' border=0 cellpadding=2 cellspacing=0>\n"; echo "<table width='100%' border=0 cellpadding=2 cellspacing=0>\n";
echo '<input type="hidden" name="iVersionId" value='.$this->iVersionId.' />'; echo '<input type="hidden" name="iVersionId" value="'.$this->iVersionId.'" />';
if($editParentApplication) if($editParentApplication)
{ {
@@ -552,7 +552,7 @@ class Version {
echo '</td></tr>',"\n"; echo '</td></tr>',"\n";
} else } else
{ {
echo '<input type="hidden" name="iAppId" value='.$this->iAppId.' />'; echo '<input type="hidden" name="iAppId" value="'.$this->iAppId.'" />';
} }
// version name // version name
@@ -583,8 +583,8 @@ class Version {
echo html_frame_end(); echo html_frame_end();
} else } else
{ {
echo '<input type="hidden" name="sMaintainerRating" value='.$this->sTestedRating.' />'; echo '<input type="hidden" name="sMaintainerRating" value="'.$this->sTestedRating.'" />';
echo '<input type="hidden" name="sMaintainerRelease" value='.$this->sTestedRelease.' />'; echo '<input type="hidden" name="sMaintainerRelease" value="'.$this->sTestedRelease.'" />';
} }
} }