Author: fabien
Date: 2010-03-25 14:11:07 +0100 (Thu, 25 Mar 2010)
New Revision: 28785
Modified:
branches/1.3/lib/view/sfViewCacheManager.class.php
branches/1.4/lib/view/sfViewCacheManager.class.php
Log:
[1.3, 1.4] fixed sort the parameters in order to compute the cache key the same
way when parameters are submited in different order (closes #8457)
Modified: branches/1.3/lib/view/sfViewCacheManager.class.php
===================================================================
--- branches/1.3/lib/view/sfViewCacheManager.class.php 2010-03-25 12:20:17 UTC
(rev 28784)
+++ branches/1.3/lib/view/sfViewCacheManager.class.php 2010-03-25 13:11:07 UTC
(rev 28785)
@@ -703,6 +703,7 @@
{
$this->dispatcher->notify(new sfEvent($this, 'application.log',
array('Generate cache key')));
}
+ ksort($parameters);
return md5(serialize($parameters));
}
Modified: branches/1.4/lib/view/sfViewCacheManager.class.php
===================================================================
--- branches/1.4/lib/view/sfViewCacheManager.class.php 2010-03-25 12:20:17 UTC
(rev 28784)
+++ branches/1.4/lib/view/sfViewCacheManager.class.php 2010-03-25 13:11:07 UTC
(rev 28785)
@@ -703,6 +703,7 @@
{
$this->dispatcher->notify(new sfEvent($this, 'application.log',
array('Generate cache key')));
}
+ ksort($parameters);
return md5(serialize($parameters));
}
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.