mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 04:42:58 -05:00
Fix string scanning for quoted literals
This commit is contained in:
@@ -529,6 +529,7 @@ int sp_scan(PARSETREE tree, int hint) {
|
|||||||
tree->token.token_id = T_ERROR;
|
tree->token.token_id = T_ERROR;
|
||||||
return T_ERROR;
|
return T_ERROR;
|
||||||
}
|
}
|
||||||
|
tree->current++; /* absorb it*/
|
||||||
} else {
|
} else {
|
||||||
if(is_qstr) {
|
if(is_qstr) {
|
||||||
tree->in_string = 1; /* guess we're in a string */
|
tree->in_string = 1; /* guess we're in a string */
|
||||||
@@ -820,7 +821,7 @@ SP_NODE *sp_parse_oexpr(PARSETREE tree) {
|
|||||||
/**
|
/**
|
||||||
* parse for an expression
|
* parse for an expression
|
||||||
*
|
*
|
||||||
* expr -> T_OPENPAREN oexpr T_CLOSEPAREN | criteria
|
* expr -> T_OPENPAREN phrase T_CLOSEPAREN | criteria
|
||||||
*
|
*
|
||||||
* @param tree tree we are building
|
* @param tree tree we are building
|
||||||
* @returns pointer to new SP_NODE if successful, NULL otherwise
|
* @returns pointer to new SP_NODE if successful, NULL otherwise
|
||||||
|
|||||||
Reference in New Issue
Block a user