Project

General

Profile

« Previous | Next » 

Revision 396

Added by Matthias almost 18 years ago

Fixed problem with Page Title has to be escaped (#287)

View differences:

settings.php
74 74
$template->set_block('page', 'main_block', 'main');
75 75
$template->set_var(array(
76 76
								'PAGE_ID' => $results_array['page_id'],
77
								'PAGE_TITLE' => ($results_array['page_title']),
78
								'MENU_TITLE' => ($results_array['menu_title']),
77
								'PAGE_TITLE' => (htmlentities($results_array['page_title'])),
78
								'MENU_TITLE' => (htmlentities($results_array['menu_title'])),
79 79
								'DESCRIPTION' => ($results_array['description']),
80 80
								'KEYWORDS' => ($results_array['keywords']),
81 81
								'MODIFIED_BY' => $user['display_name'],
......
247 247
			for($i = 1; $i <= $page['level']; $i++) { $title_prefix .= ' - '; }
248 248
			$template->set_var(array(
249 249
											'ID' => $page['page_id'],
250
											'TITLE' => ($title_prefix.$page['page_title'])
250
											'TITLE' => ($title_prefix.htmlentities($page['page_title']))
251 251
											)
252 252
									);
253 253
			if($results_array['parent'] == $page['page_id']) {

Also available in: Unified diff