Version 5.0.0 beta 5
This commit is contained in:
1 parent
2f24f9de48
commit
57d9db6ce2
218 files changed
+5331
-7416
No files matched your search
+1
-1
@@ -862,7 +862,7 @@ class Url
|
||||
}
|
||||
|
||||
/* Set a default user-agent (some services, e.g. spotify, block requests without one but it's good to do so anyway) */
|
||||
$requestObj->setHeaders( array( 'User-Agent' => 'Invision Community 4' ) );
|
||||
$requestObj->setHeaders( array( 'User-Agent' => 'Invision Community 5' ) );
|
||||
|
||||
/* Return */
|
||||
return $requestObj;
|
||||
|
||||
@@ -145,8 +145,8 @@ class Friendly extends Internal
|
||||
{
|
||||
[ $pagePath, $pageNumber ] = Page::getStrippedPagePath( $potentialFurl );
|
||||
|
||||
/* Is this from the static folders? */
|
||||
if ( mb_substr( $pagePath, 0, 7 ) === 'static/' )
|
||||
/* Is this from the static folders or upload folders? */
|
||||
if ( mb_substr( $pagePath, 0, 7 ) === 'static/' or mb_substr( $pagePath, 0, 8 ) === 'uploads/' )
|
||||
{
|
||||
/* Yes, so just return to avoid looking it up in pages when it won't be there */
|
||||
return $return;
|
||||
|
||||
Reference in new issue
Block a user