CVS update: /cowiki/includes/cowiki/class/parse/
[email protected] 31 May 2005 11:49:40 -0000
| Newsgroups | gmane.comp.php.cowiki.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: cmarble
Date: 2005/05/31 04:49:40
Modified:
cowiki/includes/cowiki/class/parse/class.WikiReverseParser.php
Log:
Proper handling of special web reference character in links. str_replace('¦', '|', etc. PHP xml_parser wouldn't deal with ¦.
File Changes:
Directory: /cowiki/includes/cowiki/class/parse/
===============================================
File [changed]: class.WikiReverseParser.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/class/parse/class.WikiReverseParser.php?r1=1.21&r2=1.22
Delta lines: +5 -2
-------------------
--- class.WikiReverseParser.php 30 May 2005 17:08:36 -0000 1.21
+++ class.WikiReverseParser.php 31 May 2005 11:49:37 -0000 1.22
@@ -2,7 +2,7 @@
/**
*
- * $Id: class.WikiReverseParser.php,v 1.21 2005/05/30 17:08:36 cmarble Exp $
+ * $Id: class.WikiReverseParser.php,v 1.22 2005/05/31 11:49:37 cmarble Exp $
*
* This file is part of coWiki. coWiki is free software under the terms of
* the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -17,7 +17,7 @@
* @author Daniel T. Gorski, <[email protected]>
* @copyright (C) Daniel T. Gorski, {@link http://www.develnet.org}
* @license http://www.gnu.org/licenses/gpl.html
- * @version $Revision: 1.21 $
+ * @version $Revision: 1.22 $
*
*/
@@ -202,6 +202,9 @@
xml_parser_set_option($this->rParser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($this->rParser, XML_OPTION_SKIP_WHITE, 1);
+
+ // Replace web/document delimiter
+ $sStr = str_replace('¦', '|', $sStr);
// Replace possible tabulators
$sStr = str_replace("\t", ' ', $sStr);