Menu

#1 edition of config.xml fails

dasty3
open-fixed
Ciler
client side (4)
1
2008-06-21
2008-06-20
rajido
No

dasty3/admin.php has a edit button to edit the config.xml file (resources/config/config.xml). The edition of this file change the first line ...

<?xml version="1.0" encoding="UTF-8"?>

to ...

<?xml version=\"1.0\" encoding=\"UTF-8\"?>

It seems the change makes the admin page fail when displaying the configuration parameters.

Discussion

  • rajido

    rajido - 2008-06-20
    • summary: admin.php --> edition of config.xml fails
     
  • Ciler

    Ciler - 2008-06-20
    • status: open --> open-works-for-me
     
  • Ciler

    Ciler - 2008-06-20

    Logged In: YES
    user_id=1199162
    Originator: NO

    I can't reproduce this error in my own environment (Firefox with localhost (Apache 2.0) and local installation identical to svn.
    I edited the configuration, made changes, re-open it using the same online facility and also the config.xml file directly and it still showed the correct first line, so I am not sure what the problem is but it must be related to an installation rather than the code.
    I also had a look anyway at the code and it seems to save straight from the textarea to the file without adding anything (admin.php, line 38).

     
  • Ciler

    Ciler - 2008-06-21

    Logged In: YES
    user_id=1199162
    Originator: NO

    The problem happens when magic_quotes_gpc is on. I changed the code so that this is not a problem.

     
  • Ciler

    Ciler - 2008-06-21
    • status: open-works-for-me --> open-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →