mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
Rename escapeTags to escapeHtml
rename function and update calls.
This commit is contained in:
parent
b5a97c1abe
commit
063f0e9cb0
16 changed files with 44 additions and 44 deletions
|
@ -3447,7 +3447,7 @@ class Item extends BaseObject
|
|||
$filesubtype = 'unkn';
|
||||
}
|
||||
|
||||
$title = Strings::escapeTags(trim(!empty($mtch[4]) ? $mtch[4] : $mtch[1]));
|
||||
$title = Strings::escapeHtml(trim(!empty($mtch[4]) ? $mtch[4] : $mtch[1]));
|
||||
$title .= ' ' . $mtch[2] . ' ' . L10n::t('bytes');
|
||||
|
||||
$icon = '<div class="attachtype icon s22 type-' . $filetype . ' subtype-' . $filesubtype . '"></div>';
|
||||
|
|
|
@ -214,14 +214,14 @@ class Contact extends BaseModule
|
|||
|
||||
$fetch_further_information = intval(defaults($_POST, 'fetch_further_information', 0));
|
||||
|
||||
$ffi_keyword_blacklist = Strings::escapeTags(trim(defaults($_POST, 'ffi_keyword_blacklist', '')));
|
||||
$ffi_keyword_blacklist = Strings::escapeHtml(trim(defaults($_POST, 'ffi_keyword_blacklist', '')));
|
||||
|
||||
$priority = intval(defaults($_POST, 'poll', 0));
|
||||
if ($priority > 5 || $priority < 0) {
|
||||
$priority = 0;
|
||||
}
|
||||
|
||||
$info = Strings::escapeTags(trim($_POST['info']));
|
||||
$info = Strings::escapeHtml(trim($_POST['info']));
|
||||
|
||||
$r = DBA::update('contact', [
|
||||
'profile-id' => $profile_id,
|
||||
|
|
|
@ -22,7 +22,7 @@ class Hashtag extends BaseModule
|
|||
{
|
||||
$result = [];
|
||||
|
||||
$t = Strings::escapeTags($_REQUEST['t']);
|
||||
$t = Strings::escapeHtml($_REQUEST['t']);
|
||||
if (empty($t)) {
|
||||
System::jsonExit($result);
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ class Strings
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function escapeTags($string)
|
||||
public static function escapeHtml($string)
|
||||
{
|
||||
return htmlspecialchars($string, ENT_COMPAT, 'UTF-8', false);
|
||||
}
|
||||
|
|
|
@ -507,7 +507,7 @@ class OnePoll
|
|||
Logger::log("Mail: can't fetch msg ".$msg_uid." for ".$mailconf['user']);
|
||||
continue;
|
||||
}
|
||||
$datarray['body'] = Strings::escapeTags($r['body']);
|
||||
$datarray['body'] = Strings::escapeHtml($r['body']);
|
||||
$datarray['body'] = BBCode::limitBodySize($datarray['body']);
|
||||
|
||||
Logger::log("Mail: Importing ".$msg_uid." for ".$mailconf['user']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue