Skip to content
Snippets Groups Projects
Commit 43af5a73 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

* fixed a small bug.
parent 68d44383
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -104,13 +104,13 @@ function rdf2sql($timout = 10) { ...@@ -104,13 +104,13 @@ function rdf2sql($timout = 10) {
$title = ereg_replace("</title>.*", "", $title); $title = ereg_replace("</title>.*", "", $title);
### Clean headlines: ### Clean headlines:
$title = stripslashes(check_input($title)); $title = stripslashes($title);
### Count the number of stories: ### Count the number of stories:
$number += 1; $number += 1;
### Insert item in database: ### Insert item in database:
$result = db_query("INSERT INTO headlines (id, title, link, number) VALUES('$this->id', '$title', '$link', '$number')"); $result = db_query("INSERT INTO headlines (id, title, link, number) VALUES('$this->id', '". stripslashes($title) ."', '". stripslashes($link) ."', '$number')");
} }
### Mark channels as being updated: ### Mark channels as being updated:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment