Skip to content

Commit

Permalink
fixed bug 1887
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav_delius committed Jan 15, 2005
1 parent 61e59ac commit dc9e582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/wiki/view.php
Expand Up @@ -217,7 +217,7 @@
}

/// Moodle Log
add_to_log($course->id, "wiki", $ewiki_action, "view.php?id=$cm->id&groupid=$groupid&userid=$userid&page=$page", $wiki->name." ".$ewiki_title);
add_to_log($course->id, "wiki", $ewiki_action, addslashes("view.php?id=$cm->id&groupid=$groupid&userid=$userid&page=$page", $wiki->name." ".$ewiki_title));


/// Print the page header
Expand Down Expand Up @@ -331,7 +331,7 @@
/// is 'view', filter it. Also, if the page doesn't exist, it will default to 'edit'.
$actions = explode('/', $page);
if ($ewiki_action == "edit" || ($actions !== false && count($actions) > 1 && $actions[0] != 'view') ||
(count($actions) == 1 && !record_exists('wiki_pages', 'pagename', $page, 'wiki', $wiki_entry->id))) {
(count($actions) == 1 && !record_exists('wiki_pages', 'pagename', addslashes($page), 'wiki', $wiki_entry->id))) {
print $content;
}
else {
Expand Down

0 comments on commit dc9e582

Please sign in to comment.