Bug :Error include() in sed_outputfilters()
Status :Fixed
Severity :Normal
Reporter :Amro 29-10-12 02:18
Updated by :Amro 30-10-12 00:45
CategoryGeneral
Version :172
Frequency :Consistently
Fixed in :173
Details :

Apache changes the working directory of the script when calling callback-function sed_outputfilters.

fix:
in sed_outputfilters()

function sed_outputfilters($output)
	{
	global $cfg;

	chdir($_SERVER['DOCUMENT_ROOT']); //fix v173
	
	/* === Hook === */
	$extp = sed_getextplugins('output');
	if (is_array($extp))
		{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
	/* ==== */

  if (!defined('SED_DISABLE_XFORM'))
    {
    $output = str_replace('</FORM>', '</form>', $output);
    $output = str_replace('</form>', sed_xp().'</form>', $output);
    }

  return($output);
  }

 

Items affected :functions.php

History and comments :

None