diff options
author | alecpl <alec@alec.pl> | 2008-11-23 12:25:15 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-11-23 12:25:15 +0000 |
commit | d59aaa1aafb204ba7ece824fee0550f907af8c3d (patch) | |
tree | 911e30ab1e44ebed214dc6074a695d4d55c10fbf /program/include | |
parent | dcf780a6bd5065ffb0dcc76233b1e5f601e258d2 (diff) |
- Allow setting attachment col position in 'list_cols' option
- Allow override 'list_cols' via skin (#1485577)
- Fix: allow empty attribs in templates
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/main.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index db3745b09..e531bd8d3 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -661,7 +661,7 @@ function create_attrib_string($attrib, $allowed_attribs=array('id', 'class', 'st function parse_attrib_string($str) { $attrib = array(); - preg_match_all('/\s*([-_a-z]+)=(["\'])??(?(2)([^\2]+)\2|(\S+?))/Ui', stripslashes($str), $regs, PREG_SET_ORDER); + preg_match_all('/\s*([-_a-z]+)=(["\'])??(?(2)([^\2]*)\2|(\S+?))/Ui', stripslashes($str), $regs, PREG_SET_ORDER); // convert attributes to an associative array (name => value) if ($regs) |