Revision 62c7d7dc

b/src/gr/ebs/gss/server/rest/FilesHandler.java
185 185
    		throws IOException, ServletException {
186 186
		boolean authDeferred = getAuthDeferred(req);
187 187
        String path = getInnerPath(req, PATH_FILES);
188
//        if (!isValidResourceName(name)) {
189
//    		resp.sendError(HttpServletResponse.SC_BAD_REQUEST);
190
//    		return;
191
//    	}
188 192
		if (path.equals(""))
189 193
			path = "/";
190 194
		try {
......
1455 1459
				String name = null;
1456 1460
				if (json.opt("name") != null)
1457 1461
					name = json.optString("name");
1462
				if (!isValidResourceName(name)) {
1463
	        		resp.sendError(HttpServletResponse.SC_BAD_REQUEST);
1464
	        		return;
1465
	        	}
1458 1466
				Long modificationDate = null;
1459 1467
				if (json.optLong("modificationDate") != 0)
1460 1468
					modificationDate = json.optLong("modificationDate");

Also available in: Unified diff