mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Don't scream out passwords on overview
Don't print ftp password by default. Prevents accidental leaks / screengrabs of sensitive infos.
This commit is contained in:
parent
899044a82c
commit
2266dd28db
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user