diff --git a/database.mwb b/database.mwb index b61f8d1..a47058d 100644 Binary files a/database.mwb and b/database.mwb differ diff --git a/munzee.php b/munzee.php index 92629f4..32a450f 100644 --- a/munzee.php +++ b/munzee.php @@ -17,7 +17,7 @@ if (empty($VARS['code'])) { if ($user->checkPassword($VARS["password"], true)) { $_SESSION["userid"] = User::byUsername($VARS["username"])->getUID(); $_SESSION["munzeeauthed"] = true; - header("Location: https://api.munzee.com/oauth?response_type=code&client_id=" . $SETTINGS["munzee"]["id"] . "&redirect_uri=" + $SETTINGS["munzee"]["redirecturl"] + "&scope=read capture_light"); + header("Location: https://api.munzee.com/oauth?response_type=code&client_id=" . $SETTINGS["munzee"]["id"] . "&redirect_uri=" . urlencode($SETTINGS["munzee"]["redirecturl"]) . "&scope=read capture_light"); die("OK"); } die("Login incorrect."); @@ -74,4 +74,4 @@ if (empty($VARS['code'])) { } else { die($Strings->get("Munzee is having problems right now. Try again later.", false)); } -} \ No newline at end of file +}