Version 3.4.8
This commit is contained in:
1 parent
b45ea0dffb
commit
c603205a25
1398 files changed
+36675
-31023
No files matched your search
@@ -2,18 +2,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.6
|
||||
* IP.Board v3.4.8
|
||||
* ipsRegistry:: Registry file controlls handling of objects needed throughout IPB
|
||||
* Last Updated: $Date: 2013-10-16 12:57:41 -0400 (Wed, 16 Oct 2013) $
|
||||
* Last Updated: $Date: 2015-03-09 15:48:19 -0400 (Mon, 09 Mar 2015) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: AndyMillne $
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since Tue. 17th August 2004
|
||||
* @version $Rev: 12380 $
|
||||
* @version $Rev: 12609 $
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -521,6 +521,11 @@ class ipsRegistry
|
||||
{
|
||||
$_POST[ $key ] = IPSText::stripslashes( $value );
|
||||
}
|
||||
|
||||
if ( $key === 'search_app' )
|
||||
{
|
||||
$_POST[ $key ] = IPSText::htmlspecialchars( $value );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -650,6 +655,13 @@ class ipsRegistry
|
||||
|
||||
/* Post member processing */
|
||||
self::$handles['member']->postOutput();
|
||||
|
||||
/* Check for security issue */
|
||||
if ( !empty( $_GET['setlanguage'] ) AND $_GET['langid'] AND ipsRegistry::$request['k'] )
|
||||
{
|
||||
$url = preg_replace( "/k=(.+?){32}&/", "", ( strtolower($_SERVER['HTTPS']) == 'on' ? "https://" : "http://" ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
|
||||
self::instance()->getClass('output')->silentRedirect( $url );
|
||||
}
|
||||
|
||||
/* Add SEO templates to the output system */
|
||||
self::instance()->getClass('output')->seoTemplates = self::$_seoTemplates;
|
||||
@@ -747,7 +759,7 @@ class ipsRegistry
|
||||
self::$handles['member']->finalizePublicMember();
|
||||
|
||||
/* Proper no cache key <update:1> */
|
||||
ipsRegistry::$settings['noCacheKey'] = md5('$Rev: 12380 $');
|
||||
ipsRegistry::$settings['noCacheKey'] = md5('$Rev: 12609 $');
|
||||
|
||||
/* Are we banned: Via IP Address? */
|
||||
if ( IPSMember::isBanned( 'ipAddress', self::$handles['member']->ip_address ) === TRUE )
|
||||
@@ -1534,7 +1546,7 @@ class ipsRegistry
|
||||
if ( self::$_seoTemplates['__data__']['varBlock'] != '/page__' && $uri && strstr( $uri, '/page__' ) )
|
||||
{
|
||||
preg_match( '#(.*)(page__.*)$#', $uri, $matches );
|
||||
|
||||
|
||||
$url = $matches[1];
|
||||
$query = $matches[2];
|
||||
$newQuery = '?';
|
||||
@@ -1545,7 +1557,7 @@ class ipsRegistry
|
||||
{
|
||||
$newQuery .= ( $i % 2 == 0 ? '&' : '=' ) . $data[$i];
|
||||
}
|
||||
|
||||
|
||||
/* Class output not created here */
|
||||
header( "HTTP/1.1 301 Moved Permanently" );
|
||||
header( "Location: " . $_t['scheme'] . '://' . $_t['host'] . $url . $newQuery );
|
||||
@@ -1554,6 +1566,7 @@ class ipsRegistry
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( is_array( $data['in']['matches'] ) )
|
||||
{
|
||||
foreach( $data['in']['matches'] as $_replace )
|
||||
@@ -1717,6 +1730,8 @@ class ipsRegistry
|
||||
|
||||
if ( $_k and $_v )
|
||||
{
|
||||
$_v = IPSText::parseCleanValue( $_v );
|
||||
|
||||
$_GET[ $_k ] = $_v;
|
||||
$_REQUEST[ $_k ] = $_v;
|
||||
$_urlBits[ $_k ] = $_v;
|
||||
@@ -2205,7 +2220,7 @@ class ipsRegistry
|
||||
|
||||
# Facebook receiver location
|
||||
ipsRegistry::$settings['fbc_xdlocation'] = ipsRegistry::$settings['_original_base_url'] . '/interface/facebook/xd_receiver.php';
|
||||
ipsRegistry::$settings['fb_req_perms'] = 'email,publish_stream,read_stream';
|
||||
ipsRegistry::$settings['fb_req_perms'] = 'email,publish_actions,user_status';
|
||||
ipsRegistry::$settings['fb_locale'] = ( ipsRegistry::$settings['fb_locale'] ) ? ipsRegistry::$settings['fb_locale'] : 'en_US';
|
||||
|
||||
# If we can't write to our /cache/tmp directory, turn off minify., It would still work, but be horribly inefficient.
|
||||
|
||||
Reference in new issue
Block a user