[Scummvm-cvs-logs] SF.net SVN: scummvm:[46218] web/trunk/include/XMLParser.php

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Mon Nov 30 16:22:29 CET 2009


Revision: 46218
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46218&view=rev
Author:   m_kiewitz
Date:     2009-11-30 15:22:28 +0000 (Mon, 30 Nov 2009)

Log Message:
-----------
fixes Š in credits (hopefully)

Modified Paths:
--------------
    web/trunk/include/XMLParser.php

Modified: web/trunk/include/XMLParser.php
===================================================================
--- web/trunk/include/XMLParser.php	2009-11-30 09:58:49 UTC (rev 46217)
+++ web/trunk/include/XMLParser.php	2009-11-30 15:22:28 UTC (rev 46218)
@@ -17,7 +17,7 @@
 
 	const NS_HTML4 = 'http://www.w3.org/TR/html4/';
 	const NS_XHTML = 'http://www.w3.org/TR/xhtml1/';
-	
+
 	static private $empty_elements = array('br', 'hr', 'img');
 	private $_tree;
 	private $_data;
@@ -57,7 +57,7 @@
 		if (!($xml = @file_get_contents($filename))) {
 			throw new ErrorException(self::FILE_NOT_READABLE . $file);
 		}
-		
+
 		/* Parse the XML. */
 		try {
 			return $this->parseByData($xml);
@@ -95,7 +95,7 @@
 		 * Workaround the XML-parser not being able to handle HTML-entities by
 		 * encapsulating them as CDATA.
 		 */
-		$pattern = '/(&(?:(?!quot|amp|apos|lt|gt)([a-z]+)|(#\d+));)/iU';
+		$pattern = '/(&(?:(?!quot|amp|apos|lt|gt|Scaron)([a-z]+)|(#\d+));)/iU';
 		$replace = '<![CDATA[\\1]]>';
 		$xml = preg_replace($pattern, $replace, $xml);
 		/* Parse the data and free the parser resource. */


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list