Skip to content

Commit

Permalink
console: don't allow user to load a -separator- (#142)
Browse files Browse the repository at this point in the history
* fix #139

* Update console.php

fix tabs.

* Update console.php

made suggested change.
  • Loading branch information
deepend-tildeclub authored Jan 31, 2024
1 parent c6e8ceb commit c6d890a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/members/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
<link rel='stylesheet' media='screen' type='text/css' href='".$MAIN_ROOT."js/colorpicker/jquery.miniColors.css'>
";

// Don't let user load a -separator- page
if (isset($_GET['cID']) && $consoleInfo['pagetitle'] === '-separator-') {
header('Location: console.php');
exit;
}

$arrTinyMCEPages = ["Manage News", "Post News", "Add Custom Page", "Manage Custom Pages", "Add Custom Form Page", "Manage Custom Form Pages", "Post Topic", "Manage Forum Posts", "Add Menu Item", "Add Menu Category", "Manage Menu Categories", "Manage Menu Items", "Edit Profile"];
$arrAceEditorPages = ["Modify Current Theme", "Add Menu Category", "Add Menu Item", "Manage Menu Categories", "Manage Menu Items"];
Expand Down

0 comments on commit c6d890a

Please sign in to comment.