diff options
author | zotlabs <mike@macgirvin.com> | 2017-07-13 20:53:05 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-07-13 20:53:05 -0700 |
commit | 266dab1b593a93d49ad97ab0cad9022486ba4c7f (patch) | |
tree | d3f77e73b717ab1bbda2c3a9adc626f519443c48 /boot.php | |
parent | 2d119c81a44691773bacd9e545ce49bebd522098 (diff) | |
download | volse-hubzilla-266dab1b593a93d49ad97ab0cad9022486ba4c7f.tar.gz volse-hubzilla-266dab1b593a93d49ad97ab0cad9022486ba4c7f.tar.bz2 volse-hubzilla-266dab1b593a93d49ad97ab0cad9022486ba4c7f.zip |
turn url requests where argv[0] is something.xyz into module='something' and $_REQUEST['module_format'] = 'xyz'; But leave modules beginning with . (like .well_known) alone (convert the initial . to _ and then strip it). This really only affects Siteinfo_json at this time.
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -899,6 +899,11 @@ class App { self::$argv = explode('/', self::$cmd); self::$argc = count(self::$argv); if ((array_key_exists('0', self::$argv)) && strlen(self::$argv[0])) { + if(strpos(self::$argv[0],'.')) { + $_REQUEST['module_format'] = substr(self::$argv[0],strpos(self::$argv[0],'.')+1); + self::$argv[0] = substr(self::$argv[0],0,strpos(self::$argv[0],'.')); + } + self::$module = str_replace(".", "_", self::$argv[0]); self::$module = str_replace("-", "_", self::$module); if(strpos(self::$module,'_') === 0) |