From e72ab8e70a65eec9e98b0411456f389422faf4b4 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 22 Nov 2010 21:05:49 +0000 Subject: [PATCH] Fixed parameter sanitization in get_compan_extensions(). --- admin/db/company_db.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/db/company_db.inc b/admin/db/company_db.inc index 821caf60..e1369092 100644 --- a/admin/db/company_db.inc +++ b/admin/db/company_db.inc @@ -84,7 +84,7 @@ function get_base_sales_type() function get_company_extensions($id = -1) { global $path_to_root; - $file = $path_to_root.($id == -1 ? '' : '/company/'.$id).'/installed_extensions.php'; + $file = $path_to_root.($id == -1 ? '' : '/company/'.(int)$id).'/installed_extensions.php'; $installed_extensions = array(); if (is_file($file)) { include($file); -- 2.30.2