mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 15:05:50 +01:00
Removed commented out code.
This commit is contained in:
@@ -46,7 +46,6 @@ object Asciidoc {
|
|||||||
case tag: TagNode if tag.getName == "a" =>
|
case tag: TagNode if tag.getName == "a" =>
|
||||||
Option(tag.getAttributeByName("href")) foreach { href =>
|
Option(tag.getAttributeByName("href")) foreach { href =>
|
||||||
if (exceptionPrefixes.forall(p => !href.startsWith(p))) {
|
if (exceptionPrefixes.forall(p => !href.startsWith(p))) {
|
||||||
// if (!href.startsWith("/") && !href.startsWith("http://") && !href.startsWith("https://")) {
|
|
||||||
tag.addAttribute("href", s"${urlPrefix}${href}")
|
tag.addAttribute("href", s"${urlPrefix}${href}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user