mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Allow <span> as well as <lang> in event titles; clean appropriately.
This commit is contained in:
parent
97fc2f34ec
commit
73ee7658df
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@
|
||||||
|
|
||||||
if($form = data_submitted()) {
|
if($form = data_submitted()) {
|
||||||
|
|
||||||
$form->name = strip_tags($form->name,'<lang>'); // Strip all tags, but <lang>
|
$form->name = clean_text(strip_tags($form->name,'<lang><span>'));
|
||||||
|
|
||||||
$form->timestart = make_timestamp($form->startyr, $form->startmon, $form->startday, $form->starthr, $form->startmin);
|
$form->timestart = make_timestamp($form->startyr, $form->startmon, $form->startday, $form->starthr, $form->startmin);
|
||||||
if($form->duration == 1) {
|
if($form->duration == 1) {
|
||||||
|
@ -183,7 +183,7 @@
|
||||||
$form = data_submitted();
|
$form = data_submitted();
|
||||||
if(!empty($form) && $form->type == 'defined') {
|
if(!empty($form) && $form->type == 'defined') {
|
||||||
|
|
||||||
$form->name = strip_tags($form->name, '<lang>'); // Strip all tags but <lang>
|
$form->name = clean_text(strip_tags($form->name, '<lang><span>'));
|
||||||
|
|
||||||
$form->timestart = make_timestamp($form->startyr, $form->startmon, $form->startday, $form->starthr, $form->startmin);
|
$form->timestart = make_timestamp($form->startyr, $form->startmon, $form->startday, $form->starthr, $form->startmin);
|
||||||
if($form->duration == 1) {
|
if($form->duration == 1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue