mirror of
https://github.com/apache/archiva.git
synced 2025-02-22 01:44:47 +00:00
change to handle new template
This commit is contained in:
parent
ee84911352
commit
44093a57de
@ -66,7 +66,7 @@ protected void doGet( HttpServletRequest req, HttpServletResponse resp )
|
||||
// replace all links !!
|
||||
Document document = Jsoup.parse( is, "UTF-8", "" );
|
||||
|
||||
Element body = document.body();
|
||||
Element body = document.body().child( 0 );
|
||||
|
||||
Elements links = body.select( "a[href]" );
|
||||
|
||||
@ -107,7 +107,7 @@ protected void doGet( HttpServletRequest req, HttpServletResponse resp )
|
||||
}
|
||||
|
||||
Document res = new Document( "" );
|
||||
res.appendChild( body.select( "div[class=container-fluid]" ).last() );
|
||||
res.appendChild( body.select( "div[id=main]" ).first() );
|
||||
|
||||
Elements scripts = body.select( "script" );
|
||||
for ( Element script : scripts )
|
||||
|
Loading…
x
Reference in New Issue
Block a user