trim container name
This commit is contained in:
parent
7f616d03d6
commit
9b302c4938
|
@ -11,7 +11,7 @@ function calcAPIKey($container)
|
|||
{
|
||||
global $RUNTIME;
|
||||
|
||||
return md5($RUNTIME['SYSTEMKEY'].md5($container['Names'][0]));
|
||||
return md5($RUNTIME['SYSTEMKEY'].md5(trim(ltrim($container['Names']['0'], '/'))));
|
||||
}
|
||||
|
||||
if(!file_exists("./pages/systemkey.txt"))
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
<?php
|
||||
|
||||
|
||||
if(isset($_POST['do-login']))
|
||||
{
|
||||
if(isset($_POST['containername']) || isset($_POST['accesskey']))
|
||||
|
@ -27,11 +25,10 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$HTML = new HTML();
|
||||
$HTML->setHTMLTitle("Login");
|
||||
$HTML->importHTML("style/default/login.html");
|
||||
$HTML->build();
|
||||
echo $HTML->ausgabe();
|
||||
|
||||
?>
|
Loading…
Reference in New Issue