From e8ea8dfb93d194091584cbf7c7e08c23610de27b Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 13 Jul 2020 17:39:45 +0800 Subject: [PATCH] urlencode branch --- platform/Heroku.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/platform/Heroku.php b/platform/Heroku.php index 434b092..a37da8d 100644 --- a/platform/Heroku.php +++ b/platform/Heroku.php @@ -126,7 +126,14 @@ function install() $html = api_error_msg($response); $title = 'Error'; } else { - return output('Jump', 302); + return output('Jump + + ', 302); } return message($html, $title, 201); } @@ -156,7 +163,10 @@ language:
'; document.cookie="timezone="+timezone+"; path=/; "+expires; function changelanguage(str) { - document.cookie=\'language=\'+str+\'; path=/\'; + var expd = new Date(); + expd.setTime(expd.getTime()+(2*60*60*1000)); + var expires = "expires="+expd.toGMTString(); + document.cookie=\'language=\'+str+\'; path=/; \'+expires; location.href = location.href; } function notnull(t) @@ -250,7 +260,7 @@ function_name:' . $_SERVER['function_name'] . '
function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = 'master') { //'https://github.com/qkqpttgf/OneManager-php/tarball/master/'; - $source = 'https://github.com/' . $auth . '/' . $project . '/tarball/' . $branch . '/'; + $source = 'https://github.com/' . $auth . '/' . $project . '/tarball/' . urlencode($branch) . '/'; return json_decode(updateHerokuapp(getConfig('function_name'), getConfig('APIKey'), $source)['body'], true); }