Permalink
Browse files

Add additional entropy to postLink()

This should help make more uniq id's for postLinks that are created
sequentially.

Fixes #3807
  • Loading branch information...
1 parent 41d124d commit df8f5e8f84e1c37cc9d039c2971ef1bfa6ef3496 @markstory markstory committed May 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/Helper/FormHelper.php
@@ -1749,7 +1749,7 @@ public function postLink($title, $url = null, $options = array(), $confirmMessag
unset($options['confirm']);
}
- $formName = uniqid('post_');
+ $formName = str_replace('.', '', uniqid('post_', true));
$formUrl = $this->url($url);
$formOptions = array(
'name' => $formName,

0 comments on commit df8f5e8

Please sign in to comment.