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]
/
functions
/
global.php
diff --git
a/functions/global.php
b/functions/global.php
index 6a45ba42a7951493cf9a94c212105ac8da8ee80a..3b42e75068c30b8137b67da6ce8e3af5db223a94 100644
(file)
--- a/
functions/global.php
+++ b/
functions/global.php
@@
-7,7
+7,7
@@
* It also has some session register functions that work across various
* php versions.
*
* It also has some session register functions that work across various
* php versions.
*
- * @copyright 1999-201
1
The SquirrelMail Project Team
+ * @copyright 1999-201
2
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
@@
-764,8
+764,8
@@
function sm_print_r() {
/**
/**
- * Sanitize a value using
htmlspecial
chars() or similar, but also
- * recursively run
htmlspecial
chars() (or similar) on array keys
+ * Sanitize a value using
sm_encode_html_special_
chars() or similar, but also
+ * recursively run
sm_encode_html_special_
chars() (or similar) on array keys
* and values.
*
* If $value is not a string or an array with strings in it,
* and values.
*
* If $value is not a string or an array with strings in it,
@@
-811,7
+811,7
@@
function sq_htmlspecialchars($value, $quote_style=ENT_QUOTES) {
if ($quote_style === TRUE)
return str_replace(array('\'', '"'), array(''', '"'), $value);
else
if ($quote_style === TRUE)
return str_replace(array('\'', '"'), array(''', '"'), $value);
else
- return
htmlspecial
chars($value, $quote_style);
+ return
sm_encode_html_special_
chars($value, $quote_style);
}
// anything else gets returned with no changes
}
// anything else gets returned with no changes