- $data['title'] = format_oneline($_REQUEST['title']);
- $data['filename'] = format_cms_filename($_REQUEST['filename']);
- $data['navbar'] = format_oneline($_REQUEST['navbar'], 'navbar');
- $data['nav_title'] = format_oneline($_REQUEST['nav_title']);
- $data['content'] = format_unix($_REQUEST['content']);
- $data['description'] = format_unix($_REQUEST['description']);
- $data['keywords'] = format_unix($_REQUEST['keywords']);
+
+ $data['title'] = format_oneline(_REQUEST_cut('title'));
+ $data['filename'] = format_cms_filename(_REQUEST_cut('filename'));
+ $data['navbar'] = format_options(_REQUEST_cut('navbar'), 'navbar');
+ $data['nav_title'] = format_oneline(_REQUEST_cut('nav_title'));
+ $data['layout'] = format_options(_REQUEST_cut('layout'), 'layout');
+ $data['content'] = format_unix(_REQUEST_cut('content'));
+ if (isset($_REQUEST['sidebar_content'])) { // probs not needed
+ $data['sidebar_content'] = format_unix(_REQUEST_cut('sidebar_content'));
+ }
+ if (isset($_REQUEST['description'])) {
+ $data['description'] = format_unix(_REQUEST_cut('description'));
+ }
+ if (isset($_REQUEST['keywords'])) {
+ $data['keywords'] = format_unix(_REQUEST_cut('keywords'));
+ }