mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Detect .git URL's too.
This commit is contained in:
parent
3ab35d3058
commit
e2b6dd9115
@ -211,8 +211,10 @@ function post_cvssync_commands() {
|
||||
|
||||
function isUrl($url = "") {
|
||||
if($url)
|
||||
if(strstr($url, "rcs.pfsense.org") or strstr($url, "mainline"))
|
||||
return true;
|
||||
if(strstr($url, "rcs.pfsense.org") or
|
||||
strstr($url, "mainline") or
|
||||
strstr($url, ".git"))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user