#1462 Wiki : Renaming page with name containing / character broken

v1.8.4
open-accepted
Oliver Hertel
5
2004-08-21
2004-05-18
John Ky
No

If a wiki page has a name that contains the / character
(for example "Test/A"), then renaming that page will
cause all pages that link to that page to become blank.

This is an awful bug because it means information can
be lost permanently.

Discussion

  • Oliver Hertel
    Oliver Hertel
    2004-05-18

    • assigned_to: nobody --> ohertel
     
    • summary: Renaming page with name containing / character broken --> Wiki : Renaming page with name containing / character broken
    • status: open --> open-accepted
     
  • Logged In: YES
    user_id=738765

    Hmm, it's in one of the regexes in wikilib.php lines 197-198
    $data = preg_replace("/(?<= |\n|\t|\r|\,|\;|^)$oldName(?=
    |\n|\t|\r|\,|\;|$)/", $newName, $data);
    $data = preg_replace("/(?<=\(\()$oldName(?=\)\)|\|)/",
    $newName, $data);
    I can't say which one though. I should really learn (and
    understand!) regexes.

    Currently the priority can stay rather low, very rarely
    people keep not even 1 version of the page in history.
    However with the rollback bug too you'll have to get the
    previous version's source.

    Thanks for reporting!

     
    • milestone: 392507 --> v1.8.4
     
  • Logged In: YES
    user_id=738765

    ohertel, time for showing your talents! this bug could be
    problematic and is still present in 1.8 CVS :(