diff --git a/mod/wiki/lang/en/wiki.php b/mod/wiki/lang/en/wiki.php index bbe4e64df4d..960803f0f53 100644 --- a/mod/wiki/lang/en/wiki.php +++ b/mod/wiki/lang/en/wiki.php @@ -93,6 +93,7 @@ $string['insertimage'] = 'Insert an image...'; $string['insertimage_help'] = 'This drop-down list will insert an image to the wiki editor. If you need to add more images to the wiki, please use "Files" tab.'; $string['invalidlock'] = 'This page is already locked by another user.'; $string['invalidparameters'] = 'Invalid parameters have been given.'; +$string['invalidsection'] = 'Invalid section.'; $string['invalidsesskey'] = 'The given sesskey is not valid. Please resend data again'; $string['individualpagedoesnotexist'] = 'Individual wiki page doesn\'t exist'; $string['javascriptdisabledlocks'] = 'Javascript is disabled on your browser and locks are not working. The changes you make may not be saved correctly.'; diff --git a/mod/wiki/pagelib.php b/mod/wiki/pagelib.php index d706a99e5fd..59690f7aa50 100644 --- a/mod/wiki/pagelib.php +++ b/mod/wiki/pagelib.php @@ -477,7 +477,7 @@ class page_wiki_edit extends page_wiki { $params = 'pageid=' . $this->page->id; if ($this->section) { - $params .= '§ion=' . $this->section; + $params .= '§ion=' . urlencode($this->section); } $form = '