#88 Import fails (multiple skins in XML/one of them with CDATA)

v3.1
closed-invalid
nobody
6
2012-02-03
2004-07-29
No

Discussion

  • Wouter Demuynck

    Wouter Demuynck - 2004-07-29

    Logged In: YES
    user_id=315939

    After a little investigation, I've found the cause to be the
    following piece of code (skin.php line 121). It should
    convert the invalid XML that Nucleus <v3.1 generated into
    something valid, but apparently messes up correct XML

    A temporary fix would be to comment out this code when
    importing skinbackup.xml files that were generated with
    Nucleus v3.1

    // backwards compatibility with the non-wellformed
    skinbackup.xml files
    // generated by v2/v3 (when CDATA sections were present in
    skins)
    // split up those CDATA sections into multiple ones
    $tempbuffer = preg_replace_callback(

    "/(<!\[CDATA\[[^]]*?<!\[CDATA\[[^]]*)((?:\]\].*?<!\[CDATA.*?)*)(\]\])(.*\]\])/ms",
    create_function(
    '$matches',
    'return $matches[1] .
    preg_replace("/(\]\])(.*?<!\[CDATA)/ms","]]]]><![CDATA[$2",$matches[2])."]]]]><![CDATA[".$matches[4];'
    ),
    $tempbuffer
    );

     
  • Wouter Demuynck

    Wouter Demuynck - 2004-08-04
    • status: open --> open-accepted
     
  • Wouter Demuynck

    Wouter Demuynck - 2004-08-04

    Logged In: YES
    user_id=315939

    Commented out the offending code (skinie v1.16)

     
  • Frank Truscott

    Frank Truscott - 2012-02-03
    • status: open-accepted --> closed-invalid
     
  • Frank Truscott

    Frank Truscott - 2012-02-03

    No longer valid bug

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks