case 4721 - client escaping of record text
Record text shown as HTML is escaped: unit warranty summary (vendor name, receipt number), work-order address dialog (now plain text), search excerpt (escaped, search terms highlighted as plain text, not as a regular expression). Confirmation dialog messages are sanitised with DOMPurify. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -624,7 +624,9 @@ export default {
|
||||
|
||||
let PurchasedFrom = "-";
|
||||
if (r.purchaseFromVendorId) {
|
||||
PurchasedFrom = `<a href="/vendors/${r.purchaseFromVendorId}"> ${r.purchasedFromVendor}</a>`;
|
||||
PurchasedFrom = `<a href="/vendors/${
|
||||
r.purchaseFromVendorId
|
||||
}"> ${window.$gz.util.escapeHtml(r.purchasedFromVendor)}</a>`; //case 4721: escaped
|
||||
}
|
||||
let PurchasedDate = "-";
|
||||
if (r.purchaseDate) {
|
||||
@@ -641,7 +643,7 @@ export default {
|
||||
"UnitPurchasedDate"
|
||||
)}: ${PurchasedDate}<br/>${this.$ay.t(
|
||||
"UnitReceipt"
|
||||
)}: ${r.purchaseReceiptNumber ?? "-"}`;
|
||||
)}: ${window.$gz.util.escapeHtml(r.purchaseReceiptNumber ?? "-")}`; //case 4721: escaped
|
||||
|
||||
let RecentWorkOrderList = "";
|
||||
if (r.recentWorkOrders.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user