Merge branch 'develop' of git://github.com/vivo-project/Vitro into develop
This commit is contained in:
commit
17155d4f21
2 changed files with 5 additions and 1 deletions
|
@ -96,6 +96,7 @@ public class SparqlQueryController extends FreemarkerHttpServlet {
|
||||||
SimplePermission.USE_SPARQL_QUERY_PAGE.ACTION)) {
|
SimplePermission.USE_SPARQL_QUERY_PAGE.ACTION)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
resp.addHeader("X-XSS-Protection", "0");
|
||||||
if (req.getParameterMap().containsKey("query")) {
|
if (req.getParameterMap().containsKey("query")) {
|
||||||
respondToQuery(req, resp);
|
respondToQuery(req, resp);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -106,7 +106,10 @@ public class JenaExportController extends BaseEditController {
|
||||||
String formatParam = vreq.getParameter("format");
|
String formatParam = vreq.getParameter("format");
|
||||||
String subgraphParam = vreq.getParameter("subgraph");
|
String subgraphParam = vreq.getParameter("subgraph");
|
||||||
String assertedOrInferredParam = vreq.getParameter("assertedOrInferred");
|
String assertedOrInferredParam = vreq.getParameter("assertedOrInferred");
|
||||||
StringBuilder ontologyURI = new StringBuilder(vreq.getParameter("ontologyURI"));
|
StringBuilder ontologyURI = new StringBuilder();
|
||||||
|
if (vreq.getParameter("ontologyURI") != null) {
|
||||||
|
ontologyURI.append(vreq.getParameter("ontologyURI"));
|
||||||
|
}
|
||||||
|
|
||||||
Model model = null;
|
Model model = null;
|
||||||
OntModel ontModel = ModelFactory.createOntologyModel();
|
OntModel ontModel = ModelFactory.createOntologyModel();
|
||||||
|
|
Loading…
Add table
Reference in a new issue