From c30b17bf75256ed3fcc84e2083147cc3951423d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jer=C3=B4me=20Bakker?= Date: Mon, 6 Dec 2021 15:39:10 +0100 Subject: [PATCH] fix(reported_content): sanitize report URLs --- mod/reportedcontent/actions/reportedcontent/add.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/reportedcontent/actions/reportedcontent/add.php b/mod/reportedcontent/actions/reportedcontent/add.php index f45a500eb52..dff05fb6fec 100644 --- a/mod/reportedcontent/actions/reportedcontent/add.php +++ b/mod/reportedcontent/actions/reportedcontent/add.php @@ -18,7 +18,7 @@ $report = new ElggReportedContent(); $report->owner_guid = elgg_get_logged_in_user_guid(); $report->title = $title; -$report->address = $address; +$report->address = elgg_normalize_site_url($address); $report->description = $description; $report->access_id = $access;