Vergleich inc/functions_post.php - 1.00 - 1.04

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * $Id$

 * $Id: functions_post.php 934 2005-12-08 13:48:07Z chris $

 */

function postify($message, $allowhtml="no", $allowmycode="yes", $allowsmilies="yes", $allowimgcode="yes", $archive=0)

 */

function postify($message, $allowhtml="no", $allowmycode="yes", $allowsmilies="yes", $allowimgcode="yes", $archive=0)

Zeile 137Zeile 137
function fixjavascript($message)
{
$message = preg_replace("#javascript:#i", "java script:", $message);

function fixjavascript($message)
{
$message = preg_replace("#javascript:#i", "java script:", $message);

	/* This patch provided by Ryan (try to remove XSS Cross-site scripting issues). */

	// this patch provided by Ryan (try to remove XSS Cross-site scripting issues).

	$message = preg_replace("#(a)(lert)#ie", "'&#'.ord($1).';$2'", $message);
$message = preg_replace("#onmouseover#i", "onmouseover", $message);
$message = preg_replace("#onmouseout#i", "onmouseout", $message);

	$message = preg_replace("#(a)(lert)#ie", "'&#'.ord($1).';$2'", $message);
$message = preg_replace("#onmouseover#i", "onmouseover", $message);
$message = preg_replace("#onmouseout#i", "onmouseout", $message);

Zeile 160Zeile 160
		reset($badwordcache);
foreach($badwordcache as $bid => $badword)
{

		reset($badwordcache);
foreach($badwordcache as $bid => $badword)
{

			if(!$badword['replacement'])
{
$badword['replacement'] = "*****";
}

			if(!$badword['replacement']) $badword['replacement'] = "*****";




			$badword['badword'] = str_replace("\\", "\\\\", $badword['badword']);
$message = preg_replace("#".$badword['badword']."#i", $badword['replacement'], $message);
}

			$badword['badword'] = str_replace("\\", "\\\\", $badword['badword']);
$message = preg_replace("#".$badword['badword']."#i", $badword['replacement'], $message);
}