logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: pb in parsing <link idref="123">foo</link>: msg#00001

Subject: Re: pb in parsing <link idref="123">foo</link>
Hi Raphael,

I'm the programmer working on aspects of the coWiki parse and display mechanisms. Since 0.3.4, coWiki has been changed fairly drastically, and we are still lacking thorough testing of the new code.

Suffice to say that the area you highlight has undergone some serious alterations. What I'm trying to say is that 0.3.4 is not really supported anymore, but that were you to (backup thoroughly and then...) install the latest from CVS you might well find various problems disappearing. Alternatively, you might become our next best bug-funder.

I'm confused by the patch that you report, which apparently changes the code only by altering execution order and maybe by side-effects. I can't quite grasp what you've changed to make a problem that I don't know about go away, which is intrigueing!

Please stay in touch.

Archie

Raphael Letocart wrote:

Hi guys,

I've got problems with cowiki 0.3.4 with apache2 + php5 (libapache2-mod-php5)

I could'nt edit a document if it contains a "((My Document)(FOO))" link, "<link idref="123">foo</link>" in the database,
but if the document contains only "((My Document))" all was good.
So after a lot of search I found that

"protected function buildIdRefLink(&$aMatches)" in class.CoWikiReverseParser.php was causing the pb,
so I modified

        // Generate normal link with an alias
        return '('
                 .'('
                    .$sPrefix
                    .$this->noopDelimiters(escape($RefNode->get('name')))
                 .')'
                 .'('
                    .escape($aMatches[2])
                 . ')'
               .')';


with


$var1 = $RefNode->get('name');
$var2 = escape($var1);
$var3 = $this->noopDelimiters($var2);

$ret = '('
                 .'('
                    .$sPrefix
                    .$var3
                 .')'
                 .'('
                    .escape($aMatches[2])
                 . ')'
               .')';

        // Generate normal link with an alias
        return $ret;

Sorry for my very poor english. I hope it could help someone.






<Prev in Thread] Current Thread [Next in Thread>