From 68c6c770bb2e0650271f0e8eb110e6a9548b9581 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Fri, 1 May 2009 03:00:11 +0200 Subject: [PATCH] [svn r20246] FS#4137 - Fixing a wrong parenthesis in fileUpload.lib.php. --- main/inc/lib/fileUpload.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/inc/lib/fileUpload.lib.php b/main/inc/lib/fileUpload.lib.php index 11924e77c5..734490567c 100644 --- a/main/inc/lib/fileUpload.lib.php +++ b/main/inc/lib/fileUpload.lib.php @@ -1172,7 +1172,7 @@ function add_document($_course,$path,$filetype,$filesize,$title,$comment=NULL, $ $sql="INSERT INTO $table_document (`path`,`filetype`,`size`,`title`, `comment`, readonly) VALUES ('$path','$filetype','$filesize','". - Database::escape_string(htmlspecialchars($title),ENT_QUOTES)."', '$comment',$readonly)"; + Database::escape_string(htmlspecialchars($title,ENT_QUOTES))."', '$comment',$readonly)"; if(api_sql_query($sql,__FILE__,__LINE__)) { //display_message("Added to database (id ".mysql_insert_id().")!");