From: Janusz Dobrowolski Date: Mon, 22 Nov 2010 21:05:49 +0000 (+0000) Subject: Fixed parameter sanitization in get_compan_extensions(). X-Git-Tag: v2.4.2~19^2~471 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=e72ab8e70a65eec9e98b0411456f389422faf4b4;p=fa-stable.git Fixed parameter sanitization in get_compan_extensions(). --- 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);