Server: Improve URL match
This commit is contained in:
		| @@ -73,8 +73,8 @@ else | ||||
| <html> | ||||
|   <head> | ||||
|     <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > | ||||
|     <link rel="icon"       type="image/png" href="resources/favicon.png" /> | ||||
|     <link rel="stylesheet" type="text/css"  href="resources/gpass.css" /> | ||||
|     <link rel="icon"       type="image/png" href="/resources/favicon.png" /> | ||||
|     <link rel="stylesheet" type="text/css"  href="/resources/gpass.css" /> | ||||
|     <script language="javascript"> | ||||
|     <?php | ||||
|     echo "pbkdf2_level=$PBKDF2_LEVEL; use_shadow_logins=$USE_SHADOW_LOGINS;\n"; | ||||
|   | ||||
| @@ -121,7 +121,6 @@ function clear_form() | ||||
| 	    inputs[i].type == "password") | ||||
| 	    inputs[i].value = ""; | ||||
|     } | ||||
|     chkPass(""); | ||||
| } | ||||
|  | ||||
| function url_domain(data) { | ||||
| @@ -458,7 +457,7 @@ function password_filter_changed() | ||||
| 		    target_url = elem.value.replace('*', '') ; | ||||
|  | ||||
| 		    try { | ||||
| 			if (target_url.match(filter)) | ||||
| 			if (target_url.match(filter) || filter.match(target_url)) | ||||
| 			    password_div.appendChild(div); | ||||
| 		    } | ||||
| 		    /* Forgive re errors */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user