From b60a3601cb4458345b169bf3115f899db93171f6 Mon Sep 17 00:00:00 2001 From: James Collins Date: Fri, 29 Sep 2023 11:01:28 +1000 Subject: [PATCH] urlencode variables --- app/Models/Media.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Media.php b/app/Models/Media.php index 2a07e6c..81e600a 100644 --- a/app/Models/Media.php +++ b/app/Models/Media.php @@ -339,8 +339,8 @@ class Media extends Model { $url = self::getUrlPath(); - $url = str_replace('{id}', $this->id, $url); - $url = str_replace('{name}', $this->name, $url); + $url = str_replace('{id}', rawurlencode($this->id), $url); + $url = str_replace('{name}', rawurlencode($this->name), $url); return $url; }