
05-18-2005, 10:10 PM
|
|
|
Join Date: Jan 2002
Location: SoCal
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Logician
Good catch!
For me this fixed the "Error:Unterminated string constant" problem of messages with linebreaks:
edit checkspelling.php, find:
PHP Code:
$mystr = stripslashes($_POST['spellstring']);
// can't have newlines or carriage returns in javascript string
$mystr = str_replace(" ", "", $mystr);
$mystr = str_replace("\n", "_|_", $mystr);
replace it as:
PHP Code:
$mystr = stripslashes($_POST['spellstring']);
// can't have newlines or carriage returns in javascript string
$mystr = str_replace("\r", "", $mystr);
$mystr = str_replace("\n", "_|_", $mystr);
|
adding the \r did it for me to!
|