mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Don't use stripslashes on data coming from database
This commit is contained in:
parent
c0e19266db
commit
1ca20e0272
@ -255,12 +255,12 @@ function add_tags_info($postid) {
|
||||
$tag = new object();
|
||||
$tag->entryid = $post->id;
|
||||
$tag->userid = $post->userid;
|
||||
$tag->timemodified = time();
|
||||
|
||||
/// Add tags information
|
||||
if ($otags = optional_param('otags','', PARAM_INT)) {
|
||||
foreach ($otags as $otag) {
|
||||
$tag->tagid = $otag;
|
||||
$tag->timemodified = time();
|
||||
|
||||
/// Add tags information
|
||||
if ($otags = optional_param('otags','', PARAM_INT)) {
|
||||
foreach ($otags as $otag) {
|
||||
$tag->tagid = $otag;
|
||||
insert_record('blog_tag_instance', $tag);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user