git.cweiske.de
/
stouyapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2955acb
)
Do not add newlines to purchase data
author
Christian Weiske
<cweiske@cweiske.de>
Sun, 2 Feb 2020 20:01:18 +0000
(21:01 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Sun, 2 Feb 2020 20:01:18 +0000
(21:01 +0100)
bin/import-game-data.php
patch
|
blob
|
history
diff --git
a/bin/import-game-data.php
b/bin/import-game-data.php
index 0227b459ff3bbfa3bc22c73ef8c6d5d5742e731c..97486ff201ff2a90573fdced45d41329236a7aa6 100755
(executable)
--- a/
bin/import-game-data.php
+++ b/
bin/import-game-data.php
@@
-586,11
+586,11
@@
function buildSearch($games)
function dummyEncrypt($data)
{
return [
- 'key' => base64_encode('0123456789abcdef')
. "\n"
,
- 'iv' => 't3jir1LHpICunvhlM76edQ=='
. "\n"
,//random bytes
+ 'key' => base64_encode('0123456789abcdef'),
+ 'iv' => 't3jir1LHpICunvhlM76edQ==',//random bytes
'blob' => base64_encode(
json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)
- )
. "\n"
,
+ ),
];
}