[svn r19332] minor bad write function Database::escape_string see FS#3909

skala
Carlos Vargas 17 years ago
parent 70ff67c956
commit e3bee94121
  1. 6
      main/blog/blog_admin.php

@ -34,7 +34,7 @@
// name of the language file that needs to be included
$language_file = "blog";
include('../inc/global.inc.php');
require_once('../inc/global.inc.php');
$this_section=SECTION_COURSES;
$blog_table_attachment = Database::get_course_table(TABLE_BLOGS_ATTACHMENT);
@ -82,11 +82,11 @@ if (api_is_allowed_to_edit())
}
if (isset($_GET['action']) && $_GET['action'] == 'visibility')
{
Blog::change_blog_visibility(Database::scape_string((int)$_GET['blog_id']));
Blog::change_blog_visibility(Database::escape_string((int)$_GET['blog_id']));
}
if (isset($_GET['action']) && $_GET['action'] == 'delete')
{
Blog::delete_blog(Database::scape_string((int)$_GET['blog_id']));
Blog::delete_blog(Database::escape_string((int)$_GET['blog_id']));
}

Loading…
Cancel
Save