summaryrefslogtreecommitdiff
path: root/classes/sanitizer.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-04-09 22:15:16 +0300
committerAndrew Dolgov <[email protected]>2023-04-09 22:15:16 +0300
commite18295a3644a92280384bdb2a68e0ac436fea376 (patch)
tree5f45cba21f3170bb74a38f12e80947d875827090 /classes/sanitizer.php
parentd68c736e4727bbb5b5ee83adcb08ac9fc23b58ac (diff)
more tracing
Diffstat (limited to 'classes/sanitizer.php')
-rw-r--r--classes/sanitizer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/sanitizer.php b/classes/sanitizer.php
index 8b4584a28..28874d16f 100644
--- a/classes/sanitizer.php
+++ b/classes/sanitizer.php
@@ -63,6 +63,7 @@ class Sanitizer {
* @return false|string The HTML, or false if an error occurred.
*/
public static function sanitize(string $str, ?bool $force_remove_images = false, int $owner = null, string $site_url = null, array $highlight_words = null, int $article_id = null) {
+ $scope = Tracer::start(__METHOD__);
if (!$owner && isset($_SESSION["uid"]))
$owner = $_SESSION["uid"];
@@ -223,6 +224,8 @@ class Sanitizer {
$res = $doc->saveHTML();
+ $scope->close();
+
/* strip everything outside of <body>...</body> */
$res_frag = array();