Wiki: fix special caracters in links to create new page with this title -refs BT#21163

pull/4971/head
NicoDucou 2 years ago
parent e5bef38ae4
commit fce5178b5e
  1. 2
      main/wiki/wiki.inc.php

@ -971,7 +971,7 @@ class Wiki
$form->addElement('text', 'title', get_lang('Title'));
$form->addRule('title', get_lang('ThisFieldIsRequired'), 'required');
self::setForm($form);
$title = isset($_GET['title']) ? Security::remove_XSS($_GET['title']) : '';
$title = isset($_GET['title']) ? htmlspecialchars_decode(Security::remove_XSS($_GET['title'])) : '';
$form->setDefaults(['title' => $title]);
$form->addButtonSave(get_lang('Save'), 'SaveWikiNew');
$form->display();

Loading…
Cancel
Save