includes/functions.php
changeset 1322 8496dd47b87c
parent 1310 41ac3758ba79
child 1328 2a5845ef8c1d
equal deleted inserted replaced
1321:db77b3bbcb93 1322:8496dd47b87c
   261  */
   261  */
   262 
   262 
   263 function get_title($sanitize = true, $chop_special = false)
   263 function get_title($sanitize = true, $chop_special = false)
   264 {
   264 {
   265 	$title = '';
   265 	$title = '';
   266 	if ( isset($_GET['title']) )
   266 	if ( isset($_GET['title']) && is_string($_GET['title']) )
   267 	{
   267 	{
   268 		$title = $_GET['title'];
   268 		$title = $_GET['title'];
   269 	}
   269 	}
   270 	else if ( isset($_SERVER['PATH_INFO']) )
   270 	else if ( isset($_SERVER['PATH_INFO']) )
   271 	{
   271 	{