logo       


CVS: phpwiki/lib BlockParser.php,1.38,1.39 CachedMarkup.php,1.8,1.9: msg#00164

Subject: CVS: phpwiki/lib BlockParser.php,1.38,1.39 CachedMarkup.php,1.8,1.9
Update of /cvsroot/phpwiki/phpwiki/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31433

Modified Files:
        BlockParser.php CachedMarkup.php 
Log Message:
patch #889415 "problems with zero's in text"
plus one minor fix by me


Index: BlockParser.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/BlockParser.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -2 -b -p -d -r1.38 -r1.39
--- BlockParser.php     15 Feb 2004 21:34:22 -0000      1.38
+++ BlockParser.php     27 Feb 2004 02:22:21 -0000      1.39
@@ -363,5 +363,5 @@ class ParsedBlock extends Block_HtmlElem
         $this->_atSpace = $input->skipSpace();
 
-        if (! ($line = $input->currentLine()) )
+        if (($line = $input->currentLine()) === '')
             return false;
 
@@ -380,4 +380,6 @@ class ParsedBlock extends Block_HtmlElem
             //$input->_debug('[', "_match failed");
         }
+        if (!$line)
+            return false;
 
         trigger_error("Couldn't match block: '$line'", E_USER_NOTICE);

Index: CachedMarkup.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/CachedMarkup.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -2 -b -p -d -r1.8 -r1.9
--- CachedMarkup.php    19 Feb 2004 21:54:17 -0000      1.8
+++ CachedMarkup.php    27 Feb 2004 02:22:21 -0000      1.9
@@ -26,5 +26,5 @@ class CacheableMarkup extends XmlContent
        $this->_content = array();
        $this->_append($content);
-       if ($this->_buf)
+       if ($this->_buf != '')
            $this->_content[] = $this->_buf;
        unset($this->_buf);



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe