user md5 of formname and form for formid in folder chooser

This commit is contained in:
Uwe Steinmann 2020-08-25 21:43:23 +02:00
parent 8638858d05
commit 22fa26bdb7

View File

@ -1241,7 +1241,7 @@ function folderSelected<?php echo $formName ?>(id, name) {
function getFolderChooserHtml($form, $accessMode, $exclude = -1, $default = false, $formname = '') { /* {{{ */
if(!$formname)
$formname = "targetid";
$formid = $formname.$form;
$formid = md5($formname.$form);
$content = '';
$content .= "<input type=\"hidden\" id=\"".$formid."\" name=\"".$formname."\" value=\"". (($default) ? $default->getID() : "") ."\">";
$content .= "<div class=\"input-append\">\n";
@ -1273,7 +1273,7 @@ function folderSelected<?php echo $formName ?>(id, name) {
function printFolderChooserJs($form, $formname='') { /* {{{ */
if(!$formname)
$formname = "targetid";
$formid = $formname.$form;
$formid = md5($formname.$form);
?>
function folderSelected<?php echo $form ?>(id, name) {
$('#<?php echo $formid ?>').val(id);