urlencode variables

This commit is contained in:
2023-09-29 11:01:28 +10:00
parent 8676844930
commit b60a3601cb

View File

@@ -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;
}