mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 18:30:53 +02:00
Bugtracker #4513 - vet comment display parameters better
This commit is contained in:
14
comment.php
14
comment.php
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/comment.php,v $
|
| $Source: /cvs_backup/e107_0.8/comment.php,v $
|
||||||
| $Revision: 1.6 $
|
| $Revision: 1.7 $
|
||||||
| $Date: 2008-06-03 21:31:31 $
|
| $Date: 2008-09-23 19:44:08 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -21,7 +21,8 @@ require_once(e_HANDLER."news_class.php");
|
|||||||
require_once(e_HANDLER."comment_class.php");
|
require_once(e_HANDLER."comment_class.php");
|
||||||
define("PAGE_NAME", COMLAN_99);
|
define("PAGE_NAME", COMLAN_99);
|
||||||
|
|
||||||
if (!e_QUERY) {
|
if (!e_QUERY)
|
||||||
|
{
|
||||||
header("location:".e_BASE."index.php");
|
header("location:".e_BASE."index.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -221,7 +222,7 @@ if ($action == "reply")
|
|||||||
define('e_PAGETITLE', $title." / ".COMLAN_99." / ".COMLAN_102.$subject."");
|
define('e_PAGETITLE', $title." / ".COMLAN_99." / ".COMLAN_102.$subject."");
|
||||||
require_once(HEADERF);
|
require_once(HEADERF);
|
||||||
}
|
}
|
||||||
else
|
elseif ($action == 'comment')
|
||||||
{ // Default code if not reply
|
{ // Default code if not reply
|
||||||
|
|
||||||
// Check cache
|
// Check cache
|
||||||
@@ -343,6 +344,11 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{ // Invalid action - just exit
|
||||||
|
header("location:".e_BASE."index.php");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
if(isset($pref['trackbackEnabled']) && $pref['trackbackEnabled'] && $table == "news")
|
if(isset($pref['trackbackEnabled']) && $pref['trackbackEnabled'] && $table == "news")
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user