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.