Skip to content

Commit

Permalink
Fix misc bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarel committed Aug 26, 2018
1 parent 687be9a commit 8562b2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ntbb-session.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private function passwordVerifyInner($userid, $pass, $user) {

if (substr(@$user['email'], -1) === '@') {
// Forgive me, gods, for I have hardcoded way more than I really should have
$valResult = shell_exec("cd /var/www/html/play.pokemonshowdown.com && node lib/validate-token.js \"$pass\"");
$valResult = shell_exec("cd /var/www/html/play.pokemonshowdown.com && node lib/validate-token.js " . escapeshellarg($pass));
$payload = json_decode($valResult, true);
if (!$payload) return false;
if (strpos($payload['aud'], $psconfig['gapi_clientid']) === false) return false;
Expand Down
2 changes: 1 addition & 1 deletion src/battle-animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ class BattleScene {
//this.preloadImage(Tools.fxPrefix + 'bg.jpg');
}
preloadBgm(bgmNum = 0) {
if (!bgmNum) bgmNum = this.numericId % 13;
if (!bgmNum) bgmNum = 1 + this.numericId % 14;
this.bgmNum = bgmNum;

let ext = window.nodewebkit ? '.ogg' : '.mp3';
Expand Down

0 comments on commit 8562b2f

Please sign in to comment.