mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fixed literal string not in quotes as parameters
This commit is contained in:
@@ -1233,8 +1233,8 @@ class Smarty_Compiler extends Smarty {
|
|||||||
$tokens[$key] = $this->_parse_section_prop($val);
|
$tokens[$key] = $this->_parse_section_prop($val);
|
||||||
}
|
}
|
||||||
elseif(!in_array($val, $this->_permitted_tokens) && !is_numeric($val)) {
|
elseif(!in_array($val, $this->_permitted_tokens) && !is_numeric($val)) {
|
||||||
// not recognized value
|
// literal string
|
||||||
$this->_syntax_error("unknown syntax: $val");
|
$tokens[$key] = '"' . $val .'"';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1233,8 +1233,8 @@ class Smarty_Compiler extends Smarty {
|
|||||||
$tokens[$key] = $this->_parse_section_prop($val);
|
$tokens[$key] = $this->_parse_section_prop($val);
|
||||||
}
|
}
|
||||||
elseif(!in_array($val, $this->_permitted_tokens) && !is_numeric($val)) {
|
elseif(!in_array($val, $this->_permitted_tokens) && !is_numeric($val)) {
|
||||||
// not recognized value
|
// literal string
|
||||||
$this->_syntax_error("unknown syntax: $val");
|
$tokens[$key] = '"' . $val .'"';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user