mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
support empty attribute values
This commit is contained in:
parent
4ff66f0fd7
commit
7e81b69b74
@ -424,7 +424,7 @@ function send_template()
|
|||||||
*/
|
*/
|
||||||
function parseAttrs($str)
|
function parseAttrs($str)
|
||||||
{
|
{
|
||||||
if (!preg_match_all('/(^|\s)([a-z\d_-]+)="([^"]+)"/i', $str, $attrs, PREG_PATTERN_ORDER))
|
if (!preg_match_all('/(^|\s)([a-z\d_-]+)="([^"]*)"/i', $str, $attrs, PREG_PATTERN_ORDER))
|
||||||
{
|
{
|
||||||
throw new Exception("Can NOT parse attributes from '$str'");
|
throw new Exception("Can NOT parse attributes from '$str'");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user