diff --git a/client_login_add_modal.php b/client_login_add_modal.php index 48bc6132..458d7860 100644 --- a/client_login_add_modal.php +++ b/client_login_add_modal.php @@ -94,12 +94,12 @@
- +
- +
diff --git a/client_login_edit_modal.php b/client_login_edit_modal.php index 6cfeef11..81567e12 100644 --- a/client_login_edit_modal.php +++ b/client_login_edit_modal.php @@ -95,12 +95,12 @@
- +
- +
diff --git a/client_logins.php b/client_logins.php index b17a38d7..264f4cf6 100644 --- a/client_logins.php +++ b/client_logins.php @@ -81,7 +81,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); if (empty($login_uri)) { $login_uri_display = "-"; } else { - $login_uri_display = "$login_uri"; + $login_uri_display = "$login_uri"; } $login_username = nullable_htmlentities(decryptLoginEntry($row['login_username'])); if (empty($login_username)) { diff --git a/post/client.php b/post/client.php index dd333b29..28f0f068 100644 --- a/post/client.php +++ b/post/client.php @@ -728,7 +728,7 @@ if (isset($_POST['export_client_pdf'])) { style: 'itemHeader' }, { - text: 'URL', + text: 'URI', style: 'itemHeader' }, { diff --git a/post/client_logins_model.php b/post/client_logins_model.php index ed228915..634e888d 100644 --- a/post/client_logins_model.php +++ b/post/client_logins_model.php @@ -2,7 +2,7 @@ $client_id = intval($_POST['client_id']); $name = sanitizeInput($_POST['name']); $description = sanitizeInput($_POST['description']); -$uri = preg_replace("(^https?://)", "", sanitizeInput($_POST['uri'])); +$uri = sanitizeInput($_POST['uri']); $username = encryptLoginEntry(trim($_POST['username'])); $password = encryptLoginEntry(trim($_POST['password'])); $otp_secret = sanitizeInput($_POST['otp_secret']); diff --git a/post/login.php b/post/login.php index 434adee2..e909aeb9 100644 --- a/post/login.php +++ b/post/login.php @@ -87,7 +87,7 @@ if(isset($_POST['export_client_logins_csv'])){ $f = fopen('php://memory', 'w'); //set column headers - $fields = array('Name', 'Description', 'Username', 'Password', 'URL'); + $fields = array('Name', 'Description', 'Username', 'Password', 'URI'); fputcsv($f, $fields, $delimiter); //output each row of the data, format line as csv and write to file pointer @@ -170,13 +170,13 @@ if(isset($_POST["import_client_logins_csv"])){ $password = sanitizeInput(encryptLoginEntry($column[3])); } if(isset($column[4])){ - $url = sanitizeInput($column[4]); + $uri = sanitizeInput($column[4]); } // Check if duplicate was detected if($duplicate_detect == 0){ //Add - mysqli_query($mysqli,"INSERT INTO logins SET login_name = '$name', login_description = '$description', login_uri = '$url', login_username = '$username', login_password = '$password', login_client_id = $client_id"); + mysqli_query($mysqli,"INSERT INTO logins SET login_name = '$name', login_description = '$description', login_uri = '$uri', login_username = '$username', login_password = '$password', login_client_id = $client_id"); $row_count = $row_count + 1; }else{ $duplicate_count = $duplicate_count + 1; @@ -213,7 +213,7 @@ if(isset($_GET['download_client_logins_csv_template'])){ $f = fopen('php://memory', 'w'); //set column headers - $fields = array('Name', 'Description', 'Username', 'Password', 'URL'); + $fields = array('Name', 'Description', 'Username', 'Password', 'URI'); fputcsv($f, $fields, $delimiter); //move back to beginning of file