One of my webhosting customers was telling me that the pagemaster wasn't
allowing him to save pages. I saw that the page was producing a
JavaScript error. I went into it, and it produced an error in the
"Confirm_" function." I went into /js/ and added this before the
functions definition.
$message = addslashes($message);
has anybody else had to do something like that? It quit producing the
error when I added that line.
So now the entire PHP file reads....
<?php
require_once(PHPWS_SOURCE_DIR.'core/Form.php');
$message = addslashes($message);
$GLOBALS['core']->js_func[] = "
function confirmData_" . $section_name . "()
{
if (confirm(\"$message\\nOK = YES, CANCEL = NO\"))
location='$location';
}";
$js = PHPWS_Form::formButton($name, $value, "confirmData_" .
$section_name . "($
?>
As far as I can tell, I'm using the latest version of phpWebsite. If
it's already been corrected, oh well. But I thought that I'd point it out.
Patrick.
|