Version 4.3.6

This commit is contained in:
Neo committed 2025-12-19 05:49:12 -08:00
1 parent fe1acf984a
commit 1a0c7fd3c2
609 files changed
+14707 -5726

No files matched your search

+1 -1
View File
@@ -986,7 +986,7 @@ class _Url
}
/* The path is terminated by the first question mark ("?") or number sign ("#") character, or by the end of the URI. */
preg_match( '/^(.+?)(\?|\#|$)/', $url, $matches );
preg_match( '/^(.*?)(\?|\#|$)/', $url, $matches );
if ( !static::validateComponent( static::COMPONENT_PATH, $matches[1] ) )
{
if ( $autoEncode )
+11
View File
@@ -230,6 +230,17 @@ class _Internal extends \IPS\Http\Url
return static::convertQueryAsArrayToString( $queryString );
}
/**
* Check if the URL is an open redirect.
* Useful if you are checking if a given URL is internal to ensure it also doesn't redirect elsewhere
*
* @return bool
*/
public function openRedirect()
{
return isset( $this->queryString['app'] ) and $this->queryString['app'] === 'core' and isset( $this->queryString['module'] ) and $this->queryString['module'] === 'system' and isset( $this->queryString['controller'] ) and $this->queryString['controller'] === 'redirect';
}
/* !Deprecated */
/**
+6 -1
View File
@@ -142,7 +142,7 @@ class _Useragent
'alexa' => "^ia_archive",
'altavista' => "Scooter[ /\-]*[a-z]*([0-9.]{1,10})",
'ask' => "Ask[ \-]?Jeeves",
'baidu' => "^baiduspider\-",
'baidu' => array( "^baiduspider\-", "baiduspider[ /]([0-9.]{1,10})" ),
'bing' => array( "bingbot[ /]([0-9.]{1,10})", "msnbot(?:-media)?[ /]([0-9.]{1,10})" ),
'brandwatch' => "magpie-crawler",
'excite' => "Architext[ \-]?Spider",
@@ -161,6 +161,11 @@ class _Useragent
'websense' => "(?:Sqworm|websense|Konqueror/3\.(?:0|1)(?:\-rc[1-6])?; i686 Linux; 2002[0-9]{4})",
'yahoo' => "Yahoo(?:.*?)(?:Slurp|FeedSeeker)",
'yandex' => "Yandex(?:[^\/]+?)\/([0-9.]{1,10})",
'seznam' => array( "SeznamBot[ /]([0-9.]{1,10})", "Seznam screenshot-generator ([0-9.]{1,10})" ),
'dotbot' => "DotBot[ /]([0-9.]{1,10})",
'sogou' => "Sogou web spider[ /]([0-9.]{1,10})",
'isetallabot' => "istellabot[ /][a-z]([0-9.]{1,10})",
'blexbot' => "BLEXBot[ /]([0-9.]{1,10})"
);
/**