Added in addslashes() and stripslashes()

This commit is contained in:
jengo 2000-11-28 20:10:01 +00:00
parent 9ab5005680
commit f946d84475
3 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
$phpgw->template->set_var("tr_color",$tr_color);
$phpgw->template->set_var("value",'<textarea name="message" cols="50" rows="10" wrap="hard">' . $current_message . '</textarea>');
$phpgw->template->set_var("value",'<textarea name="message" cols="50" rows="10" wrap="hard">' . stripslashes($current_message) . '</textarea>');
$phpgw->template->parse("rows","row_2",True);
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);

View File

@ -49,7 +49,7 @@
$phpgw->translation->add_app("mainscreen");
if (lang("mainscreen_message") != "mainscreen_message*") {
echo "<center>" . lang("mainscreen_message") . "</center>";
echo "<center>" . stripslashes(lang("mainscreen_message")) . "</center>";
}
if ((isset($phpgw_info["user"]["apps"]["admin"]) &&

View File

@ -103,7 +103,7 @@
$phpgw->translation->add_app("login");
$phpgw->translation->add_app("loginscreen");
if (lang("loginscreen_message") != "loginscreen_message*") {
$tmpl->set_var("lang_message",lang("loginscreen_message"));
$tmpl->set_var("lang_message",stripslashes(lang("loginscreen_message")));
}
} else {
$tmpl->set_var("lang_message","");