* fix for api and remove bom and adjust for php8.1.

This commit is contained in:
王怡栋
2022-03-03 10:19:58 +08:00
parent 83ce0b8052
commit 58b1f576bc
3 changed files with 2 additions and 3 deletions
-1
View File
@@ -623,7 +623,6 @@ class baseRouter
$this->cookie = new super('cookie');
$this->session = new super('session', $this->tab);
unset($GLOBALS);
unset($_REQUEST);
/* Change for CSRF. */
+1 -1
View File
@@ -1,4 +1,4 @@
<?php
<?php
$config->gitlab->create = new stdclass;
$config->gitlab->create->requiredFields = 'name,url,token';
+1 -1
View File
@@ -51,4 +51,4 @@ $app->loadModule();
$output = ob_get_clean();
/* Flush the buffer. */
echo helper::removeUTF8Bom($app->formatData($output));
echo $app->formatData(helper::removeUTF8Bom($output));