projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace calls to htmlspecialchars() with sm_encode_html_special_chars().
[squirrelmail.git]
/
src
/
addressbook.php
diff --git
a/src/addressbook.php
b/src/addressbook.php
index 75a337a1e34be6df6e681c47567fd66ab6edf862..d5081261f0799ee27d7ec43acb2b6e3fa79f1c1c 100644
(file)
--- a/
src/addressbook.php
+++ b/
src/addressbook.php
@@
-233,7
+233,7
@@
if(sqgetGlobalVar('REQUEST_METHOD', $req_method, SQ_SERVER) && $req_method == 'P
$olddata = $abook->lookup($enick, $ebackend);
// Test if $olddata really contains anything and return an error message if it doesn't
if (!$olddata) {
$olddata = $abook->lookup($enick, $ebackend);
// Test if $olddata really contains anything and return an error message if it doesn't
if (!$olddata) {
- error_box(nl2br(
htmlspecial
chars($abook->error)));
+ error_box(nl2br(
sm_encode_html_special_
chars($abook->error)));
} else {
/* Display the "new address" form */
echo abook_create_form($form_url, 'editaddr',
} else {
/* Display the "new address" form */
echo abook_create_form($form_url, 'editaddr',
@@
-255,7
+255,7
@@
if(sqgetGlobalVar('REQUEST_METHOD', $req_method, SQ_SERVER) && $req_method == 'P
/* Handle error messages */
if (!$r) {
/* Display error */
/* Handle error messages */
if (!$r) {
/* Display error */
- plain_error_message( nl2br(
htmlspecial
chars($abook->error)));
+ plain_error_message( nl2br(
sm_encode_html_special_
chars($abook->error)));
/* Display the "new address" form again */
echo abook_create_form($form_url, 'editaddr',
/* Display the "new address" form again */
echo abook_create_form($form_url, 'editaddr',
@@
-299,7
+299,7
@@
if(sqgetGlobalVar('REQUEST_METHOD', $req_method, SQ_SERVER) && $req_method == 'P
/* Display error messages */
if (!empty($formerror)) {
/* Display error messages */
if (!empty($formerror)) {
- plain_error_message(nl2br(
htmlspecial
chars($formerror)));
+ plain_error_message(nl2br(
sm_encode_html_special_
chars($formerror)));
}
}
@@
-326,7
+326,7
@@
while (list($k, $backend) = each ($abook->backends)) {
$addresses[$backend->bnum] = $a;
} else {
// list_addr() returns boolean
$addresses[$backend->bnum] = $a;
} else {
// list_addr() returns boolean
- plain_error_message(nl2br(
htmlspecial
chars($abook->error)));
+ plain_error_message(nl2br(
sm_encode_html_special_
chars($abook->error)));
}
} else {
$addresses[$backend->bnum] = $a;
}
} else {
$addresses[$backend->bnum] = $a;