Take the site address from SITE_URL.
The feed links, the notification email, the webmaster address and the cookie domain now use it.
This commit is contained in:
@@ -8,4 +8,9 @@ function h($string) {
|
||||
function form_value($string) {
|
||||
return htmlspecialchars((string)$string, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
|
||||
}
|
||||
|
||||
// Text as numeric character references, which hides an email address from simple harvesters
|
||||
function hidden_email($address) {
|
||||
return preg_replace_callback('/./s', function ($char) { return '&#' . ord($char[0]) . ';'; }, (string)$address);
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user