Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

avoid pass by reference error on 5.4

  • Loading branch information...
commit e4542827c85c6558833bb8ce1c8b63ef2cd12c76 1 parent a355a84
ceeram ceeram authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/Cake/Routing/Filter/AssetDispatcher.php
3  lib/Cake/Routing/Filter/AssetDispatcher.php
View
@@ -64,7 +64,8 @@ public function beforeDispatch($event) {
return $response;
}
- $ext = array_pop(explode('.', $url));
+ $pathSegments = explode('.', $url);
+ $ext = array_pop($pathSegments);
$this->_deliverAsset($response, $assetFile, $ext);
return $response;
}
Please sign in to comment.
Something went wrong with that request. Please try again.