Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff committed Apr 10, 2024
1 parent e4ffe45 commit 4bd9a76
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 21 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
pull_request:

jobs:
maven-build:
runs-on: ubuntu-22.04
steps:
- name: Git Checkout
uses: actions/checkout@v5
- name: JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
- name: Build with Maven
env:
MAVEN_OPTS: -Djava.awt.headless=true -Dorg.slf4j.simpleLogger.defaultLogLevel=info -Dmaven.wagon.http.retryHandler.count=2 -Dmaven.wagon.http.pool=true
run: mvn clean install -Psnapshots -V -B
4 changes: 2 additions & 2 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<artifactId>search-api</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down
4 changes: 2 additions & 2 deletions api/src/java/org/sakaiproject/clog/api/datamodel/Comment.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import java.util.Date;
import java.util.Stack;

import org.apache.commons.lang.StringEscapeUtils;
import org.apache.commons.lang3.StringEscapeUtils;
import org.sakaiproject.clog.api.ClogManager;
import org.sakaiproject.clog.api.cover.SakaiProxy;
import org.sakaiproject.entity.api.Entity;
Expand Down Expand Up @@ -69,7 +69,7 @@ public void setContent(String text, boolean modified) {
modifiedDate = new Date().getTime();
}

this.content = StringEscapeUtils.unescapeHtml(text.trim());
this.content = StringEscapeUtils.unescapeHtml4(text.trim());
}

public String getContent() {
Expand Down
4 changes: 0 additions & 4 deletions impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
15 changes: 8 additions & 7 deletions tool/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,23 @@
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<groupId>jakarta.servlet.jsp.jstl</groupId>
<artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
<version>${sakai.jakarta.jstl-api.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
<groupId>org.apache.taglibs</groupId>
<artifactId>taglibs-standard-impl</artifactId>
<version>1.2.5</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions tool/src/java/org/sakaiproject/clog/tool/ClogTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang.StringEscapeUtils;
import org.apache.commons.lang3.StringEscapeUtils;
import org.sakaiproject.clog.api.ClogManager;
import org.sakaiproject.clog.api.SakaiProxy;
import org.sakaiproject.component.api.ComponentManager;
Expand Down Expand Up @@ -107,7 +107,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
request.setAttribute("sakaiHtmlHead", (String) request.getAttribute("sakai.html.head"));

request.setAttribute("userId", userId);
request.setAttribute("userDisplayName", StringEscapeUtils.escapeJavaScript(displayName));
request.setAttribute("userDisplayName", StringEscapeUtils.escapeEcmaScript(displayName));
request.setAttribute("siteId", siteId);
request.setAttribute("state", state);

Expand Down
6 changes: 2 additions & 4 deletions tool/src/webapp/WEB-INF/functions.tld
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@

<function>
<name>escapeJS</name>
<!--<function-class>org.apache.commons.lang3.StringEscapeUtils</function-class>-->
<!--<function-signature>java.lang.String escapeEcmaScript(java.lang.String)</function-signature>-->
<function-class>org.apache.commons.lang.StringEscapeUtils</function-class>
<function-signature>java.lang.String escapeJavaScript(java.lang.String)</function-signature>
<function-class>org.apache.commons.lang3.StringEscapeUtils</function-class>
<function-signature>java.lang.String escapeEcmaScript(java.lang.String)</function-signature>
</function>
</taglib>

0 comments on commit 4bd9a76

Please sign in to comment.