changeset 1913:032ccd3118cb

Tests: fixed warning on win32 in auth_basic.t.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 14 Jun 2023 16:07:18 +0300
parents f61d1b4ac638
children afbf4c06c014
files auth_basic.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/auth_basic.t
+++ b/auth_basic.t
@@ -64,8 +64,8 @@ EOF
 
 $t->write_file(
 	'htpasswd',
-	'crypt:' . crypt('password', 'salt') . "\n" .
-	'crypt1:' . crypt('password', '$1$salt$') . "\n" .
+	'crypt:' . (crypt('password', 'salt') || '') . "\n" .
+	'crypt1:' . (crypt('password', '$1$salt$') || '') . "\n" .
 	'crypt2:' . '$1$' . "\n" .
 	'apr1:' . '$apr1$salt$Xxd1irWT9ycqoYxGFn4cb.' . "\n" .
 	'apr12:' . '$apr1$' . "\n" .