Project

General

Profile

« Previous | Next » 

Revision 892

Added by Matthias over 15 years ago

replaced in news modul special chars with entities to get valid output;
changed SESSION ID Separator from '&' to '&' to get valid output
Removed the <p> tag around the news as it is added from the editor
set version to 2.8 BETA

View differences:

submit_comment.php
26 26
// Include config file
27 27
require('../../config.php');
28 28

  
29
//overwrite php.ini on Apache servers for valid SESSION ID Separator
30
if(function_exists('ini_set')) {
31
	ini_set('arg_separator.output', '&amp;');
32
}
33

  
29 34
require_once(WB_PATH.'/framework/class.wb.php');
30 35
$wb = new wb;
31 36

  
......
74 79
					$_SESSION['captcha_error'] = $MESSAGE['MOD_FORM']['INCORRECT_CAPTCHA'];
75 80
					$_SESSION['comment_title'] = $title;
76 81
					$_SESSION['comment_body'] = $comment;
77
					exit(header('Location: '.WB_URL."/modules/news/comment.php?id=$post_id&sid=$section_id"));
82
					exit(header('Location: '.WB_URL."/modules/news/comment.php?id=$post_id&amp;sid=$section_id"));
78 83
				}
79 84
			} else {
80 85
				$_SESSION['captcha_error'] = $MESSAGE['MOD_FORM']['INCORRECT_CAPTCHA'];
81 86
				$_SESSION['comment_title'] = $title;
82 87
				$_SESSION['comment_body'] = $comment;
83
				exit(header('Location: '.WB_URL."/modules/news/comment.php?id=$post_id&sid=$section_id"));
88
				exit(header('Location: '.WB_URL."/modules/news/comment.php?id=$post_id&amp;sid=$section_id"));
84 89
			}
85 90
		}
86 91
	}
......
105 110
	header('Location: '.$wb->page_link($page['link']).'?id='.$post_id);
106 111
} else {
107 112
	if(isset($_GET['post_id']) AND is_numeric($_GET['post_id']) AND isset($_GET['section_id']) AND is_numeric($_GET['section_id']))
108
		header('Location: '.WB_URL."/modules/news/comment.php?id={$_GET['post_id']}&sid={$_GET['section_id']}");
113
		header('Location: '.WB_URL."/modules/news/comment.php?id={$_GET['post_id']}&amp;sid={$_GET['section_id']}");
109 114
	else
110 115
		exit(header("Location: ".WB_URL.PAGES_DIRECTORY.""));
111 116
}

Also available in: Unified diff