Project

General

Profile

« Previous | Next » 

Revision 442

Added by Matthias over 17 years ago

Fixed issues with some languages when UTF8 is used.
Removed all htmlentites from the code (revoked changeset [396]) and added new functions instead.
Adapted the search and the highlighting to use the new functions.
With this changes WB can now be used with charset UTF8 for all languages.

View differences:

class.frontend.php
72 72
				$content = @fread($handle, filesize($filename));
73 73
				@fclose($handle);
74 74
				$this->preprocess($content);
75
	      header("Location: pages/intro.php");   // send intro.php as header to allow parsing of php statements
75
				header("Location: pages/intro.php");   // send intro.php as header to allow parsing of php statements
76 76
				echo ($content);
77 77
				return false;
78 78
			}
......
140 140
			// Page ID
141 141
			define('PAGE_ID', $this->page['page_id']);
142 142
			// Page Title
143
			define('PAGE_TITLE', htmlentities(($this->page['page_title'])));
143
			define('PAGE_TITLE', $this->page['page_title']);
144 144
			$this->page_title=PAGE_TITLE;
145 145
			// Menu Title
146
			$menu_title = htmlentities($this->page['menu_title']);
146
			$menu_title = $this->page['menu_title'];
147 147
			if($menu_title != '') {
148 148
				define('MENU_TITLE', $menu_title);
149 149
			} else {
......
354 354
	            $link = $this->page_link($page['link']);
355 355
	         }
356 356
	         // Create values
357
	         $values = array($class,'<a href="'.$link.'" target="'.$page['target'].'" '.$class.'>', '</a>', htmlentities($page['menu_title']), htmlentities($page['page_title']));
357
	         $values = array($class,'<a href="'.$link.'" target="'.$page['target'].'" '.$class.'>', '</a>', $page['menu_title'], $page['page_title']);
358 358
	         // Replace vars with value and print
359 359
	         echo "\n".str_replace($vars, $values, $this->menu_item_template);
360 360
	         // Generate sub-menu

Also available in: Unified diff