Parcourir la source

Update invoice_item_edit.php (#106)

AlexanderDCrane il y a 6 ans
Parent
commit
29ba45942b
1 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 7 7
      invoices/invoice_item_edit.php

+ 7 - 7
invoices/invoice_item_edit.php

@@ -183,7 +183,7 @@
 	echo "	".$text['label-item_qty']."\n";
 	echo "	".$text['label-item_qty']."\n";
 	echo "</td>\n";
 	echo "</td>\n";
 	echo "<td class='vtable' align='left'>\n";
 	echo "<td class='vtable' align='left'>\n";
-	echo "  <input class='formfld' type='text' name='item_qty' maxlength='255' value='$item_qty'>\n";
+	echo "  <input class='formfld' type='text' name='item_qty' maxlength='255' value='".escape($item_qty)."'>\n";
 	echo "<br />\n";
 	echo "<br />\n";
 	echo $text['description-item_qty']."\n";
 	echo $text['description-item_qty']."\n";
 	echo "</td>\n";
 	echo "</td>\n";
@@ -194,7 +194,7 @@
 	echo "	".$text['label-item_unit_price']."\n";
 	echo "	".$text['label-item_unit_price']."\n";
 	echo "</td>\n";
 	echo "</td>\n";
 	echo "<td class='vtable' align='left'>\n";
 	echo "<td class='vtable' align='left'>\n";
-	echo "  <input class='formfld' type='text' name='item_unit_price' maxlength='255' value='$item_unit_price'>\n";
+	echo "  <input class='formfld' type='text' name='item_unit_price' maxlength='255' value='".escape($item_unit_price)."'>\n";
 	echo "<br />\n";
 	echo "<br />\n";
 	echo $text['description-item_unit_price']."\n";
 	echo $text['description-item_unit_price']."\n";
 	echo "</td>\n";
 	echo "</td>\n";
@@ -205,7 +205,7 @@
 	echo "	".$text['label-item_desc']."\n";
 	echo "	".$text['label-item_desc']."\n";
 	echo "</td>\n";
 	echo "</td>\n";
 	echo "<td class='vtable' align='left'>\n";
 	echo "<td class='vtable' align='left'>\n";
-	echo "  <textarea class='formfld' type='text' rows='15' name='item_desc'>$item_desc</textarea>\n";
+	echo "  <textarea class='formfld' type='text' rows='15' name='item_desc'>".escape($item_desc)."</textarea>\n";
 	echo "<br />\n";
 	echo "<br />\n";
 	//echo $text['description-item_desc']."\n";
 	//echo $text['description-item_desc']."\n";
 	echo "</td>\n";
 	echo "</td>\n";
@@ -213,13 +213,13 @@
 
 
 	echo "	<tr>\n";
 	echo "	<tr>\n";
 	echo "		<td colspan='2' align='right'>\n";
 	echo "		<td colspan='2' align='right'>\n";
-	echo "			<input type='hidden' name='invoice_uuid' value='$invoice_uuid'>\n";
-	echo "			<input type='hidden' name='contact_uuid' value='$contact_uuid'>\n";
+	echo "			<input type='hidden' name='invoice_uuid' value='".escape($invoice_uuid)."'>\n";
+	echo "			<input type='hidden' name='contact_uuid' value='".escape($contact_uuid)."'>\n";
 	if ($action == "update") {
 	if ($action == "update") {
 		if ($back != '') {
 		if ($back != '') {
-			echo "		<input type='hidden' name='back' value='".$back."'>";
+			echo "		<input type='hidden' name='back' value='".escape($back)."'>";
 		}
 		}
-		echo "		<input type='hidden' name='invoice_item_uuid' value='$invoice_item_uuid'>\n";
+		echo "		<input type='hidden' name='invoice_item_uuid' value='".escape($invoice_item_uuid)."'>\n";
 	}
 	}
 	echo "			<br><input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
 	echo "			<br><input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
 	echo "		</td>\n";
 	echo "		</td>\n";