Jelajahi Sumber

Fix missing arguments from renderUnescaped

Justin Hileman 14 tahun lalu
induk
melakukan
4bb4e970de
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      Mustache.php

+ 2 - 2
Mustache.php

@@ -617,7 +617,7 @@ class Mustache {
 	 * @return string
 	 */
 	protected function _renderEscaped($tag_name, $leading, $trailing) {
-		return $leading . htmlentities($this->_renderUnescaped($tag_name), ENT_COMPAT, $this->_charset) . $trailing;
+		return htmlentities($this->_renderUnescaped($tag_name, $leading, $trailing), ENT_COMPAT, $this->_charset);
 	}
 
 	/**
@@ -888,4 +888,4 @@ class MustacheException extends Exception {
 	// which can't be handled by this Mustache instance.
 	const UNKNOWN_PRAGMA           = 4;
 
-}
+}