Skip to content

Commit

Permalink
MDL-6529 - strip slashes when displaying category added success messsage
Browse files Browse the repository at this point in the history
merged from MOODLE_19_STABLE
  • Loading branch information
poltawski committed Jan 7, 2008
1 parent e17e126 commit 1c8ec30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/editcategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
} else {
$newcategory->context = get_context_instance(CONTEXT_COURSECAT, $newcategory->id);
mark_context_dirty($newcategory->context->path);
redirect('index.php?categoryedit=on', get_string('categoryadded', null, $newcategory->name));
redirect('index.php?categoryedit=on', get_string('categoryadded', null, stripslashes($newcategory->name)));
}
} elseif (has_capability('moodle/category:update', $context)) {
$newcategory->id = $category->id;
Expand Down

0 comments on commit 1c8ec30

Please sign in to comment.