FIX Don't double-escape state field (#317)

Symfony now escapes each component separately.
See https://github.com/silverstripe/silverstripe-fulltextsearch/issues/311
This commit is contained in:
Tim Oliver 2022-03-04 14:10:15 +13:00 committed by GitHub
parent 0788dc4e81
commit 30ed311386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -77,12 +77,6 @@ class SolrReindexImmediateHandler extends SolrReindexBase
$indexClass = get_class($indexInstance);
$statevar = json_encode($state);
if (strpos(PHP_OS, "WIN") !== false) {
$statevar = '"' . str_replace('"', '\\"', $statevar) . '"';
} else {
$statevar = "'" . $statevar . "'";
}
$php = Environment::getEnv('SS_PHP_BIN') ?: Config::inst()->get(static::class, 'php_bin');
// Build script line