summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-11-23 12:25:15 +0000
committeralecpl <alec@alec.pl>2008-11-23 12:25:15 +0000
commitd59aaa1aafb204ba7ece824fee0550f907af8c3d (patch)
tree911e30ab1e44ebed214dc6074a695d4d55c10fbf /program/include/main.inc
parentdcf780a6bd5065ffb0dcc76233b1e5f601e258d2 (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/main.inc')
-rw-r--r--program/include/main.inc2
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)