From e9c062a189cfad71922fc576d636610da18006d4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 18 Jun 2021 11:20:57 +0300 Subject: UrlHelper::rewrite_relative(): - support invoking specifying owner URL element/attribute - restrict mailto/magnet/tel schemes for A href - allow some data: base64 image types for IMG src Sanitizer::sanitize(): - when checking href and src attributes, pass element tagname and attribute to rewrite_relative() --- classes/urlhelper.php | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'classes/urlhelper.php') diff --git a/classes/urlhelper.php b/classes/urlhelper.php index 648d609a4..b4545939f 100644 --- a/classes/urlhelper.php +++ b/classes/urlhelper.php @@ -1,6 +1,6 @@