Server: Improve URL match

This commit is contained in:
Gregory Soutade 2023-12-03 10:08:57 +01:00
parent 129335dc2d
commit b8223a87ad
2 changed files with 3 additions and 4 deletions

View File

@ -73,8 +73,8 @@ else
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" > <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<link rel="icon" type="image/png" href="resources/favicon.png" /> <link rel="icon" type="image/png" href="/resources/favicon.png" />
<link rel="stylesheet" type="text/css" href="resources/gpass.css" /> <link rel="stylesheet" type="text/css" href="/resources/gpass.css" />
<script language="javascript"> <script language="javascript">
<?php <?php
echo "pbkdf2_level=$PBKDF2_LEVEL; use_shadow_logins=$USE_SHADOW_LOGINS;\n"; echo "pbkdf2_level=$PBKDF2_LEVEL; use_shadow_logins=$USE_SHADOW_LOGINS;\n";

View File

@ -121,7 +121,6 @@ function clear_form()
inputs[i].type == "password") inputs[i].type == "password")
inputs[i].value = ""; inputs[i].value = "";
} }
chkPass("");
} }
function url_domain(data) { function url_domain(data) {
@ -458,7 +457,7 @@ function password_filter_changed()
target_url = elem.value.replace('*', '') ; target_url = elem.value.replace('*', '') ;
try { try {
if (target_url.match(filter)) if (target_url.match(filter) || filter.match(target_url))
password_div.appendChild(div); password_div.appendChild(div);
} }
/* Forgive re errors */ /* Forgive re errors */