mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
2010-12-15 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php, include/ajax/module.php: fixed when the module have a scape html chars. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3658 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
94a23729e9
commit
fab9d73229
@ -1,3 +1,8 @@
|
|||||||
|
2010-12-15 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_html.php, include/ajax/module.php: fixed when the module
|
||||||
|
have a scape html chars.
|
||||||
|
|
||||||
2010-12-03 Sergio Martin <sergio.martin@artica.es>
|
2010-12-03 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* operation/search_agents.php: Fixed alert fired number of modules
|
* operation/search_agents.php: Fixed alert fired number of modules
|
||||||
|
@ -27,7 +27,7 @@ if ($search_modules) {
|
|||||||
$modules = array_unique($modules);
|
$modules = array_unique($modules);
|
||||||
|
|
||||||
foreach ($modules as $module) {
|
foreach ($modules as $module) {
|
||||||
echo $module . "\n";
|
echo safe_output($module) . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
@ -1310,6 +1310,14 @@ function print_autocomplete_modules($name = 'module', $default = '', $id_agents
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
function escapeHTML (str)
|
||||||
|
{
|
||||||
|
var div = document.createElement('div');
|
||||||
|
var text = document.createTextNode(str);
|
||||||
|
div.appendChild(text);
|
||||||
|
return div.innerHTML;
|
||||||
|
};
|
||||||
|
|
||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
$("#text-<?php echo $name; ?>").autocomplete(
|
$("#text-<?php echo $name; ?>").autocomplete(
|
||||||
"ajax.php",
|
"ajax.php",
|
||||||
@ -1331,7 +1339,7 @@ function print_autocomplete_modules($name = 'module', $default = '', $id_agents
|
|||||||
if (data == "")
|
if (data == "")
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return data[0];
|
return escapeHTML(data[0]);
|
||||||
},
|
},
|
||||||
delay: 200
|
delay: 200
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user