]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Coerce width, height of media link to integer
authorEvan Prodromou <evan@e14n.com>
Fri, 7 Jun 2013 04:30:04 +0000 (00:30 -0400)
committerEvan Prodromou <evan@e14n.com>
Fri, 7 Jun 2013 04:30:04 +0000 (00:30 -0400)
lib/activitystreamjsondocument.php

index c67fc5a42f159ecfc485975256fbfbfd0faaafd6..9964f1e60c14e550e643e788d2387aca1358b7ff 100644 (file)
@@ -201,9 +201,9 @@ class ActivityStreamsMediaLink extends ActivityStreamsLink
     {
         parent::__construct($url, $rel, $mediaType);
         $this->linkDict = array(
-            'width'      => $width,
-            'height'     => $height,
-            'duration'   => $duration
+            'width'      => intval($width),
+            'height'     => intval($height),
+            'duration'   => intval($duration)
         );
     }