Development

Changeset 8411

You must first sign up to be able to contribute.

Changeset 8411

Show
Ignore:
Timestamp:
04/11/08 09:53:10 (6 months ago)
Author:
fabien
Message:

added quotes when dumping string that contains & and * (aliases) to YAML

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/yaml/sfYamlInline.class.php

    r8286 r8411  
    7575      case false !== strpos($value, "\n"): 
    7676        return sprintf('"%s"', str_replace(array('"', "\n"), array('\\"', '\n'), $value)); 
    77       case preg_match('/[ \s \' " \: \{ \} \[ \] , ]/x', $value): 
     77      case preg_match('/[ \s \' " \: \{ \} \[ \] , & \*]/x', $value): 
    7878        return sprintf("'%s'", str_replace('\'', '\'\'', $value)); 
    7979      case '' == $value: