Project

General

Profile

« Previous | Next » 

Revision 286

Added by stefan almost 19 years ago

Added an exit call after every heading("Location:...") redirector to prevent unwanted execution of code.

View differences:

submit_comment.php
68 68
	$query_page = $database->query("SELECT link FROM ".TABLE_PREFIX."mod_news_posts WHERE post_id = '$post_id'");
69 69
	$page = $query_page->fetchRow();
70 70
	header('Location: '.$wb->page_link($page['link']).'?id='.$post_id);
71
	
72 71
} else {
73 72
	header('Location: '.WB_URL.'/pages/');
74 73
}

Also available in: Unified diff