<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -157,7 +157,8 @@ class UploadBehavior extends ModelBehavior {
       'extension' =&gt; !empty($filename) ? $pathinfo['extension'] : null,
       'id' =&gt; $modelId,
       'style' =&gt; $style,
-      'attachment' =&gt; Inflector::pluralize($field)
+      'attachment' =&gt; Inflector::pluralize($field),
+      'hash' =&gt; md5((!empty($filename) ? $pathinfo['filename'] : &quot;&quot;) . Configure::read('Security.salt'))
     ), $defaults);
     $settings = self::$__settings[$modelName][$field];
     $keys = array('path', 'url', 'default_url');</diff>
      <filename>upload_pack/models/behaviors/upload.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>13b7ba1c0fe43cfa6e3cc92b284a0b4957157be5</id>
    </parent>
  </parents>
  <author>
    <name>Micha&#322; Szajbe</name>
    <email>michal.szajbe@gmail.com</email>
  </author>
  <url>http://github.com/szajbus/uploadpack/commit/f49b02363f087077615618c1312d5d31b094deb3</url>
  <id>f49b02363f087077615618c1312d5d31b094deb3</id>
  <committed-date>2009-11-03T15:04:16-08:00</committed-date>
  <authored-date>2009-11-03T15:04:16-08:00</authored-date>
  <message>Added :hash interpolation key.

It's replaced with md5 hash of the original filename + Security.salt.</message>
  <tree>3e03be59eb216d27d989811c32e4f15b464aad20</tree>
  <committer>
    <name>Micha&#322; Szajbe</name>
    <email>michal.szajbe@gmail.com</email>
  </committer>
</commit>
