Login | Register
My pages Projects Community openCollabNet

Discussions > issues > pb in parsing <link idref="123">foo</link>

cowiki
Discussion topic

Back to topic list

pb in parsing &lt;link idref="123"&gt;foo&lt;/link&gt;

Author Raphael Letocart <raphael at xlprog-nc dot com>
Full name Raphael Letocart <raphael at xlprog-nc dot com>
Date 2006-05-03 22:06:01 PDT
Message 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->noopDeli​miters(escape($RefN​ode->get('name'))​)
                 .')'
                 .'('
                    .escape($aMatches[2])
                 . ')'
               .')';


with


$var1 = $RefNode->get('name');
$var2 = escape($var1);
$var3 = $this->noopDelim​iters($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.
Attachments

« Previous message in topic | 1 of 8 | Next message in topic »

Messages

Show all messages in topic

pb in parsing &lt;link idref="123"&gt;foo&lt;/link&gt; Raphael Letocart <raphael at xlprog-nc dot com> Raphael Letocart <raphael at xlprog-nc dot com> 2006-05-03 22:06:01 PDT
     Re: [cowiki-issues] pb in parsing &lt;link idref="123"&gt;foo&lt;/link&gt; cmarble Archie Campbell 2006-05-05 03:26:25 PDT
         Re: [cowiki-issues] pb in parsing &lt;link idref="123"&gt;foo&lt;/link&gt; Raphael Letocart <raphael at xlprog-nc dot com> Raphael Letocart <raphael at xlprog-nc dot com> 2006-05-05 17:35:53 PDT
             Re: [cowiki-issues] pb in parsing &lt;link idref="123"&gt;foo&lt;/link&gt; cmarble Archie Campbell 2006-05-06 06:14:11 PDT
                 Re: [cowiki-issues] pb in parsing &lt;link idref="123"&gt;foo&lt;/link&gt; Raphael Letocart <raphael at xlprog-nc dot com> Raphael Letocart <raphael at xlprog-nc dot com> 2006-05-06 15:41:18 PDT
                     Re: [cowiki-issues] pb in parsing, other issues highlighted cmarble Archie Campbell 2006-05-07 07:14:05 PDT
                         Re: [cowiki-issues] pb in parsing, other issues highlighted Raphael Letocart <raphael at xlprog-nc dot com> Raphael Letocart <raphael at xlprog-nc dot com> 2006-05-08 14:13:10 PDT
                             Re: [cowiki-issues] pb in parsing, other issues highlighted cmarble Archie Campbell 2006-05-08 15:05:45 PDT
Messages per page: