Merge pull request #129 from tzeumer/fix-csrf_error_export_OR_3.8.4+
Fix "Missing or invalid csrf_token parameter" on export for OR 3.8.4+
This commit is contained in:
commit
ffb28e6025
1
orcli
1
orcli
|
@ -1496,6 +1496,7 @@ function log() {
|
||||||
# post to export-rows endpoint
|
# post to export-rows endpoint
|
||||||
# shellcheck shell=bash disable=SC2154
|
# shellcheck shell=bash disable=SC2154
|
||||||
function post_export() {
|
function post_export() {
|
||||||
|
csrf="$(get_csrf)"
|
||||||
local curloptions
|
local curloptions
|
||||||
for d in "$@"; do
|
for d in "$@"; do
|
||||||
curloptions+=("--data-urlencode")
|
curloptions+=("--data-urlencode")
|
||||||
|
|
Loading…
Reference in New Issue