diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d7cb8a46a2..776d820a89 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,25 +1,30 @@ -2009-09-18 Miguel de Dios +2009-09-25 Miguel de Dios + + * include/javascript/pandora_modules.js: fix the js and add more entities + for decode. + +2009-09-25 Miguel de Dios * godmode/modules/manage_network_components.php: change the duplicate method and delete method, before it's a form with post and now it's a link with get. -2009-09-18 Miguel de Dios +2009-09-25 Miguel de Dios * godmode/agentes/configurar_agente.php: add the feature to delete remote conf file in the agent configuration. -2009-09-18 Miguel de Dios +2009-09-25 Miguel de Dios * include/functions_db.php: fix the delete the conf and md5 files of agent to delete, before try delete conf and md5 files with name in uppercase. -2009-09-18 Miguel de Dios +2009-09-25 Miguel de Dios * include/functions_html.php: add second parameter for trace a log in server file (plain text). -2009-09-18 Miguel de Dios +2009-09-25 Miguel de Dios * godmode/agentes/module_manager.php: add checkbox to multiple delete modules in agent managent. And add class style css for disabled modules. diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index 4431287253..50e7512f76 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -68,7 +68,9 @@ function configure_modules_form () { "id_module_component" : this.value }, function (data, status) { - configuration_data = data['data'].replace(/</g,'<').replace(/>/g,'>').replace(/&/g,'&'); + configuration_data = data['data'] + .replace(/</g,'<').replace(/>/g,'>') + .replace(/\/g,'\\').replace(/"/g,'\"').replace(/'/g,'\'').replace(/&/g,'&'); $("#text-name").attr ("value", html_entity_decode (data["name"])); $("#textarea_description").attr ("value", html_entity_decode (data["description"]));