]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2476: update_entity_last_action() sanitizes posted time.
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 15 Feb 2011 19:58:56 +0000 (19:58 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 15 Feb 2011 19:58:56 +0000 (19:58 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8255 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/entities.php

index 81c14da4d85d7839015e5b6dafb613f8db650fcd..61e7326516ccf4fa900fd138d0bef41b4284ebd5 100644 (file)
@@ -2143,7 +2143,8 @@ function elgg_instanceof($entity, $type = NULL, $subtype = NULL, $class = NULL)
 function update_entity_last_action($guid, $posted = NULL) {
        global $CONFIG;
        $guid = (int)$guid;
-
+       $posted = (int)$posted;
+       
        if (!$posted) {
                $posted = time();
        }