Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix query parser logging.
James Cole39d46d469ce1
diff --git a/app/Support/Search/QueryParser/QueryParser.php b/app/Support/Search/QueryParser/QueryParser.phpindex ee001eb7b0..6319dea7c9 100644--- a/app/Support/Search/QueryParser/QueryParser.php+++ b/app/Support/Search/QueryParser/QueryParser.php@@ -54,17 +54,16 @@ class QueryParser implements QueryParserInterface$prohibited = false;$chrArray = preg_split('//u', $this->query, -1, PREG_SPLIT_NO_EMPTY);$count = count($chrArray);- $prevChar = null;while ($this->position < $count) {$char = $chrArray[$this->position];$nextChar = $chrArray[$this->position + 1] ?? '';$prevChar = $chrArray[$this->position - 1] ?? '';- Log::debug(sprintf('Char #%d: %s', $this->position, $char));+ // Log::debug(sprintf('Char #%d: %s', $this->position, $char));// If we're in a quoted string, we treat all characters except another quote as ordinary charactersif ($inQuotes) {if ('\\' === $char && '"' === $nextChar && '\\' !== $prevChar) {- Log::debug('Found a backslash and the next one is a double quote.');+ // Log::debug('Found a backslash and the next one is a double quote.');// escaped quote, pretend it's a normal char and continue two places (skipping the actual character).$tokenUnderConstruction .= '\\'.$nextChar;$this->position += 2;