diff --git a/src/infrastructure/markup/PhabricatorMarkupEngine.php b/src/infrastructure/markup/PhabricatorMarkupEngine.php index f242519c18..d0c8545809 100644 --- a/src/infrastructure/markup/PhabricatorMarkupEngine.php +++ b/src/infrastructure/markup/PhabricatorMarkupEngine.php @@ -41,7 +41,7 @@ final class PhabricatorMarkupEngine { private $objects = array(); private $viewer; - private $version = 3; + private $version = 4; /* -( Markup Pipeline )---------------------------------------------------- */ diff --git a/src/infrastructure/storage/lisk/LiskDAO.php b/src/infrastructure/storage/lisk/LiskDAO.php index 095b39a523..a1db91d95d 100644 --- a/src/infrastructure/storage/lisk/LiskDAO.php +++ b/src/infrastructure/storage/lisk/LiskDAO.php @@ -406,6 +406,10 @@ abstract class LiskDAO { * @task load */ public function load($id) { + if (is_object($id)) { + $id = (string)$id; + } + if (!$id || (!is_int($id) && !ctype_digit($id))) { return null; }