BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
cff44b5f
Commit
cff44b5f
authored
Apr 17, 2018
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make call to 'html_escape' unambiguous
parent
a56611e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
tree_helper.rb
app/helpers/tree_helper.rb
+1
-1
html.rb
lib/banzai/renderer/common_mark/html.rb
+1
-1
html.rb
lib/banzai/renderer/redcarpet/html.rb
+1
-1
No files found.
app/helpers/tree_helper.rb
View file @
cff44b5f
...
...
@@ -90,7 +90,7 @@ module TreeHelper
end
def
commit_in_single_accessible_branch
branch_name
=
html_escape
(
selected_branch
)
branch_name
=
ERB
::
Util
.
html_escape
(
selected_branch
)
message
=
_
(
"Your changes can be committed to %{branch_name} because a merge "
\
"request is open."
)
%
{
branch_name:
"<strong>
#{
branch_name
}
</strong>"
}
...
...
lib/banzai/renderer/common_mark/html.rb
View file @
cff44b5f
...
...
@@ -9,7 +9,7 @@ module Banzai
lang_attr
=
lang
.
present?
?
%Q{ lang="
#{
lang
}
"}
:
''
result
=
"<pre>"
\
"<code
#{
lang_attr
}
>
#{
html_escape
(
code
)
}
</code>"
\
"<code
#{
lang_attr
}
>
#{
ERB
::
Util
.
html_escape
(
code
)
}
</code>"
\
"</pre>"
out
(
result
)
...
...
lib/banzai/renderer/redcarpet/html.rb
View file @
cff44b5f
...
...
@@ -6,7 +6,7 @@ module Banzai
lang_attr
=
lang
?
%Q{ lang="
#{
lang
}
"}
:
''
"
\n
<pre>"
\
"<code
#{
lang_attr
}
>
#{
html_escape
(
code
)
}
</code>"
\
"<code
#{
lang_attr
}
>
#{
ERB
::
Util
.
html_escape
(
code
)
}
</code>"
\
"</pre>"
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment