Permalink
Browse files

[hotfix/ZF-11356]

Update Zend\Json\Encoder::_encodeObject to encode the object's class name using _encodeString
  • Loading branch information...
1 parent e10ae0f commit c92553c27197be1e6301b742ee0643543cd11b58 @adamlundrigan committed Aug 31, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 library/Zend/Json/Encoder.php
@@ -165,8 +165,9 @@ protected function _encodeObject(&$value)
}
}
- return '{"__className":"'
- . str_replace('\\', '\\\\', get_class($value)) . '"'
+ $className = get_class($value);
+ return '{"__className":'
+ . $this->_encodeString($className)
. $props . '}';
}

0 comments on commit c92553c

Please sign in to comment.