Update of /cvsroot/phpwebapp/web_app/parser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25213/parser
Modified Files:
class.WebPage.php
Log Message:
Index: class.WebPage.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/parser/class.WebPage.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** class.WebPage.php 24 Jun 2005 14:50:35 -0000 1.17
--- class.WebPage.php 30 Jun 2005 06:24:43 -0000 1.18
***************
*** 222,227 ****
{
$msg = $this->messages[$i];
! $msg = str_replace("\n", '\n', $msg); //replace new lines with '\n'
! $msg = str_replace("'", "\\'", $msg); //escape single quotes
$js .= "\talert('$msg');\n";
}
--- 222,226 ----
{
$msg = $this->messages[$i];
! $msg = WebApp::js_encode($msg);
$js .= "\talert('$msg');\n";
}
***************
*** 254,259 ****
if ($html_content!=UNDEFINED)
{
! $html_content = str_replace("\n", '\\n', $html_content);
! $html_content = str_replace("'", "\\'", $html_content);
$js .= " $name.document.write('$html_content');";
}
--- 253,257 ----
if ($html_content!=UNDEFINED)
{
! $html_content = WebApp::js_encode($html_content);
$js .= " $name.document.write('$html_content');";
}
|