fr-manvi opened a new pull request, #1523: URL: https://github.com/apache/wicket/pull/1523
The `source` page parameter of the examples source browser goes straight into `Class.getResourceAsStream()`, so it is not limited to the package it claims to show: - `?SourcesPage_class=org.apache.wicket.examples.helloworld.HelloWorld&source=/META-INF/NOTICE` returns any class path resource, absolute names included - `source=../style.css` walks out of the package the same way - `.class` files are readable too, although the file browser deliberately filters them out The page already computes the list of files it is willing to show, so the requested name is now checked against that list. Building the list also had to stop looking at only the first class path entry of the package, otherwise a package present in more than one entry loses files it should offer. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
