Fixed parameter sanitization in get_compan_extensions().
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 22 Nov 2010 21:05:49 +0000 (21:05 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 22 Nov 2010 21:05:49 +0000 (21:05 +0000)
admin/db/company_db.inc

index 821caf601f4dad58ca54fbcb80e545c737210ca6..e13690926a47b2b2a554f7cb88094dd6f0d7d710 100644 (file)
@@ -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);