This is very minor and basically insignificant, but if its there, it may as well be correct. find
$friendlyurl = str_replace("http://","",$site_config["SITEURL"]);
change to
$friendlyurl = preg_replace("/^https?:\/\//i", "", $site_config["SITEURL"]);
This just appends the torrent file with your URL and removes the http stuff, but this was only set for http, not https and im sure thats what everyone uses now, but this will work for either. I never paid attention to this either, but I was just scrolling looking for something else and noticed this. You can change it, or not, it dont really matter, just thought I would mention it
$friendlyurl = str_replace("http://","",$site_config["SITEURL"]);
change to
$friendlyurl = preg_replace("/^https?:\/\//i", "", $site_config["SITEURL"]);
This just appends the torrent file with your URL and removes the http stuff, but this was only set for http, not https and im sure thats what everyone uses now, but this will work for either. I never paid attention to this either, but I was just scrolling looking for something else and noticed this. You can change it, or not, it dont really matter, just thought I would mention it
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2023-03-06 23:33:23
