From 29c1bb3d3b2d44a002939b3a15a60ba9ac7afca4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 17 Jun 2011 18:17:58 +0000 Subject: [PATCH] Fix: BUG#33584 --- htdocs/lib/admin.lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/lib/admin.lib.php b/htdocs/lib/admin.lib.php index d21336440a7..e45ceca1dbc 100644 --- a/htdocs/lib/admin.lib.php +++ b/htdocs/lib/admin.lib.php @@ -144,6 +144,7 @@ function run_sql($sqlfile,$silent=1,$entity='',$usesavepoint=1,$handler='') // Add line buf to buffer if not a comment if (! preg_match('/^--/',$buf)) { + $buf=preg_repalce('/--.*$/','',$buf); //remove comment from a line that not start with -- before add it to the buffer $buffer .= trim($buf); }