Menu

#101 WikiPage with certain chars are broken

Linking
closed
5
2012-10-11
2002-02-26
Anonymous
No

If a WikiPage has a name containing either a number or an underscore
the BackLinks do not work. I checked the database queries ( mysql )
and saw that TN.TE.MigrateTo230 becomes TN.TE.MigrateTo.
Since that page does not exist the backlink stay empty.

Page access to that particular page works ok. The bug
does not seem to be in the database backends
( verified against 1.3.2 )

Version: 1.3.3
Mysql: Ver 3.23.49 for pc-linux-gnu on i686
PHP: 4.1.1-2

Discussion

  • Nobody/Anonymous

    Logged In: NO

    The error is actually caused by a 'too-aggresive' footnote
    deletion regexp in the function ExtractWikiPageLinks

    I think that part of the code needs a little rewrite

     
  • Nobody/Anonymous

    Logged In: NO

    Replace
    // remove footnotes
    $line = preg_replace('/[[\d+]/', ' ',
    $line);
    with
    // remove footnotes
    $line =
    preg_replace('/[[\d+]/', ' ', $line);

    in stdlib.php

     
  • Nobody/Anonymous

    Logged In: NO

    That regexp needs to be changed anyway, as it won't
    successfully delete footnotes with more than one digit.
    (Although it will delete the footnote [+])

    WikiPages containing spaces also break the BackLinks code,
    but that seems to be a different bug...?

     
  • Reini Urban

    Reini Urban - 2004-04-18

    Logged In: YES
    user_id=13755

    works now even with "0" as pagename.

     

Log in to post a comment.