Fix redirect issue by partially reverting to 956af54 - fixes #1567
1 parent 0a007dd commit 3795de97a4cc6110fad4f54f3204785e1118f85b
@Damian Bronecki Damian Bronecki authored on 1 May 2017
Showing 1 changed file
View
7
src/main/scala/gitbucket/core/controller/ControllerBase.scala
}
}
}
 
override def url(path: String, params: Iterable[(String, Any)] = Iterable.empty,
includeContextPath: Boolean = true, includeServletPath: Boolean = true,
absolutize: Boolean = true, withSessionId: Boolean = true)
(implicit request: HttpServletRequest, response: HttpServletResponse): String =
if (path.startsWith("http")) path
else baseUrl + super.url(path, params, false, false, false)
 
/**
* Extends scalatra-form's trim rule to eliminate CR and LF.
*/
protected def trim2[T](valueType: SingleValueType[T]): SingleValueType[T] = new SingleValueType[T](){