diff --git a/Zotlabs/Lib/System.php b/Zotlabs/Lib/System.php index 01ceda113..9ca70c3c5 100644 --- a/Zotlabs/Lib/System.php +++ b/Zotlabs/Lib/System.php @@ -42,7 +42,7 @@ class System { static public function get_project_version() { - if((! array_path_exists('system/hide_version', App::$config)) || App::$config['system']['hide_version']) + if(array_path_exists('system/hide_version', App::$config) && intval(App::$config['system']['hide_version'])) return ''; if(is_array(App::$config) && is_array(App::$config['system']) && array_key_exists('std_version',App::$config['system'])) return App::$config['system']['std_version']; diff --git a/Zotlabs/Module/Sites.php b/Zotlabs/Module/Sites.php index fa23a4b51..40131dbd3 100644 --- a/Zotlabs/Module/Sites.php +++ b/Zotlabs/Module/Sites.php @@ -7,7 +7,7 @@ class Sites extends \Zotlabs\Web\Controller { function get() { - $sql_extra = (($_REQUEST['project']) ? " and site_project = '" . escape_tags(protect_sprintf(escape_tags($_REQUEST['project']))) . "' " : ""); + $sql_extra = (($_REQUEST['project']) ? " and site_project = '" . escape_tags(protect_sprintf(dbesc($_REQUEST['project']))) . "' " : ""); $desc = t('This page provides information about related projects and websites that are currently known to this system. These are a small fraction of the thousands of websites and dozens of projects and providers which make up the fediverse.'); diff --git a/boot.php b/boot.php index d8880dbfb..8b53071a9 100755 --- a/boot.php +++ b/boot.php @@ -16,7 +16,7 @@ use Zotlabs\Daemon\Run; * @brief This file defines some global constants and includes the central App class. */ -define ( 'STD_VERSION', '21.03.31' ); +define ( 'STD_VERSION', '21.04.02' ); define ( 'ZOT_REVISION', '10.0' ); define ( 'DB_UPDATE_VERSION', 1247 );