Skip to content

Commit

Permalink
Merge pull request #241 from silverstripe-superchargers/bugfix/8916-f…
Browse files Browse the repository at this point in the history
…ilelink-session

BUGFIX #8916 Prevent session generation on file_link shortcode handling
  • Loading branch information
kinglozzer authored Apr 12, 2019
2 parents 94e9a11 + 4b0d5c8 commit 7667a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shortcodes/FileShortcodeProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static function handle_shortcode($arguments, $content, $parser, $shortcod
/** @var AssetStore $store */
$store = Injector::inst()->get(AssetStore::class);
if (!empty($item['filename'])) {
$store->grant($item['filename'], $item['hash']);
$store->getAsURL($item['filename'], $item['hash']);
}
return $item['markup'];
}
Expand Down

0 comments on commit 7667a54

Please sign in to comment.