Ver Fonte

Change EOLs in <documentation> output from \r\n and \r to \n. This removes any url encoded \r's in the output. Fix ZF-9305

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21378 44c647ce-9c0f-0410-b52a-842ac1e357ba
rquadling há 16 anos atrás
pai
commit
4b0c6595e7
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      library/Zend/Soap/Wsdl.php

+ 1 - 1
library/Zend/Soap/Wsdl.php

@@ -424,7 +424,7 @@ class Zend_Soap_Wsdl
         }
 
         $doc = $this->_dom->createElement('documentation');
-        $doc_cdata = $this->_dom->createTextNode($documentation);
+        $doc_cdata = $this->_dom->createTextNode(str_replace(array("\r\n", "\r"), "\n", $documentation));
         $doc->appendChild($doc_cdata);
 
         if($node->hasChildNodes()) {