Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Added escape for customer_order_id in missing order warning message, fix for GHSA-3xwm-8f6m-cfc6 reported by @whuHouYF

givanz2457d88b1254
diff --git a/app/controller/user/return-form.php b/app/controller/user/return-form.php
index ef42ab0..31e4eb3 100755
--- a/app/controller/user/return-form.php
+++ b/app/controller/user/return-form.php
@@ -48,7 +48,7 @@ class ReturnForm extends Base {
$this->request->post['return_status_id'] = 1;
$this->request->post['product_id'] = 1;
} else {
- $this->view->errors['return'] = sprintf(__('Order %s not found!'), $customer_order_id);
+ $this->view->errors['return'] = sprintf(__('Order %s not found!'), htmlspecialchars($customer_order_id));
return $this->index();
}