mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-12 07:02:13 +00:00
Add defensive check for empty repository key
This commit is contained in:
parent
e7438db1de
commit
b2be58e5da
@ -95,7 +95,7 @@ Spring.SnippetView = Backbone.View.extend({
|
||||
this.combinedTemplate = _.template(
|
||||
"<div class=\"highlight\"><pre><code>" +
|
||||
downloadTemplate.find("code:first").html() +
|
||||
"{@ if (repository) { @}" +
|
||||
"{@ if (typeof(repository) != \"undefined\") { @}" +
|
||||
repositoryTemplate.find("code:first").html() +
|
||||
"{@ } @}" +
|
||||
"</code></pre></div>"
|
||||
|
Loading…
x
Reference in New Issue
Block a user