Merge pull request #1289 from MadMakz/patch-1

Don't scream out passwords on overview
This commit is contained in:
Andre Rohlf 2020-08-09 12:19:34 +02:00 committed by GitHub
commit b67b165d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,7 @@
<?php if(($pa['ftpaccess'] or $pa['miniroot']) and $table_row['ftpAllowed']) { ?>
<li class="list-group-item"><b><?php echo $sprache->ftp_link;?>:</b>
<a href="<?php echo $table_row['ftpdata'];?>">
<?php echo $table_row['ftpdata'];?>
<?php echo str_replace($table_row['cftppass'], str_repeat("*", strlen($table_row['cftppass'])), $table_row['ftpdata']);?>
</a>
</li>
<?php } ?>
@ -169,11 +169,12 @@
<?php echo $table_row['cname'];?>
</li>
<li class="list-group-item"><b><?php echo $sprache->ftp_password;?>:</b>
<?php echo $table_row['cftppass'];?>
<div id="cftppass-<?php echo $gsa; ?>" style="display:none"><?php echo $table_row['cftppass'];?></div>
<button title="" class="btn btn-outline-warning inline" type="button" onclick="if(document.getElementById('cftppass-<?php echo $gsa; ?>') .style.display=='none') {document.getElementById('cftppass-<?php echo $gsa; ?>') .style.display='inline'}else{document.getElementById('cftppass-<?php echo $gsa; ?>') .style.display='none'}"><i class="fa fa-eye"></i></button>
</li>
<li class="list-group-item"></li>
</ul>
</div>
</div></section></section></div></div>
<?php }?>
</div></div>
</div></div>