From a714a6377465aeaaed8acbfa70fa18c3961bcc85 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 11 Mar 2009 02:12:36 +0000 Subject: [PATCH] Add timeout for ykksm queries. --- common.php | 1 + 1 file changed, 1 insertion(+) diff --git a/common.php b/common.php index e17d89f..7b2e2cd 100644 --- a/common.php +++ b/common.php @@ -104,6 +104,7 @@ function decryptOTP($otp, $base_url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_USERAGENT, "YK-VAL"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_TIMEOUT, 5); $response = curl_exec($ch); curl_close($ch);