--- a/src/webdav.c
+++ b/src/webdav.c
@@ -2045,7 +2045,7 @@ ssl_verify(void *userdata, int failures,
             len = getline(&s, &n, stdin);
             if (len < 0)
                 abort();
-            if (rpmatch(s) > 0)
+            if ((s[0]=='y' || s[0]=='Y') > 0)
                 ret = 0;
             free(s);
     } 
