diff -r 2f6f6f7551ca -r 32102edaa81b web/wp-content/plugins/wp-super-cache/wp-cache-base.php --- a/web/wp-content/plugins/wp-super-cache/wp-cache-base.php Thu Sep 16 15:45:36 2010 +0000 +++ b/web/wp-content/plugins/wp-super-cache/wp-cache-base.php Mon Nov 19 18:26:13 2012 +0100 @@ -1,13 +1,38 @@ - +\'\"\r\n\t\(\)]/', '', str_replace( '..', '', $_SERVER['REQUEST_URI'] ) ); + if( strpos( $request_uri, '/', 1 ) ) { + if( $base == '/' ) { + $blogcacheid = substr( $request_uri, 1, strpos( $request_uri, '/', 1 ) - 1 ); + } else { + $blogcacheid = str_replace( $base, '', $request_uri ); + if ( $blogcacheid != '' ) + $blogcacheid = substr( $blogcacheid, 0, strpos( $blogcacheid, '/', 1 ) ); + } + if ( '/' == substr($blogcacheid, -1)) + $blogcacheid = substr($blogcacheid, 0, -1); + } + $blogcacheid = str_replace( '/', '', $blogcacheid ); + } +} + +?>