svncommit
2008-04-21 f025740b07449ed2727b10f72f94496946c69f68
fix for attrib strings with embedded quotes

1 files modified
2 ■■■ changed files
program/include/main.inc 2 ●●● patch | view | raw | blame | history
program/include/main.inc
@@ -1483,7 +1483,7 @@
function parse_attrib_string($str)
  {
  $attrib = array();
  preg_match_all('/\s*([-_a-z]+)=(["\'])??(?(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)