@@ -226,13 +226,11 @@ |
||
226 | 226 | if ($scriptedAgent->getName()==ScriptedAgent::UNKNOWN) |
227 | 227 | { |
228 | 228 | return false; |
229 | - } |
|
230 | - else |
|
229 | + } else |
|
231 | 230 | { |
232 | 231 | return $scriptedAgent; |
233 | 232 | } |
234 | - } |
|
235 | - else |
|
233 | + } else |
|
236 | 234 | { |
237 | 235 | return false; |
238 | 236 | } |
@@ -429,9 +429,11 @@ |
||
429 | 429 | public static function checkRobotWebdav() |
430 | 430 | { |
431 | 431 | if (stripos(self::$userAgentString, "WEBDAV Client") !== false || |
432 | - stripos(self::$userAgentString, "Microsoft Office Existence Discovery") !== false) //Office Webdav probe |
|
432 | + stripos(self::$userAgentString, "Microsoft Office Existence Discovery") !== false) { |
|
433 | + //Office Webdav probe |
|
433 | 434 | { |
434 | 435 | self::$scriptedAgent->setName(ScriptedAgent::WEBDAV); |
436 | + } |
|
435 | 437 | self::$scriptedAgent->setType(ScriptedAgent::TOOL); |
436 | 438 | self::$scriptedAgent->setInfoURL("https://en.wikipedia.org/wiki/WebDAV"); |
437 | 439 | return true; |