Skip to content

Commit

Permalink
LDEV-3328 avoid creating invalid windows path
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 23, 2024
1 parent 205e17c commit 89f0905
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions core/src/main/java/lucee/runtime/MappingImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import lucee.commons.io.log.Log;
import lucee.commons.io.log.LogUtil;
import lucee.commons.io.res.Resource;
import lucee.commons.io.res.util.ResourceUtil;
import lucee.commons.lang.ClassUtil;
import lucee.commons.lang.ExceptionUtil;
import lucee.commons.lang.MappingUtil;
Expand Down Expand Up @@ -448,7 +449,7 @@ public PageSource getPageSource(String realPath) {
else if (realPath.startsWith("./")) {
realPath = realPath.substring(1);
}
else {
else if (!ResourceUtil.isWindowsPath(realPath)){
realPath = "/" + realPath;
}
}
Expand All @@ -466,7 +467,7 @@ public Resource getResource(String realPath) {
else if (realPath.startsWith("./")) {
realPath = realPath.substring(1);
}
else {
else if (!ResourceUtil.isWindowsPath(realPath)){
realPath = "/" + realPath;
}
}
Expand Down
2 changes: 1 addition & 1 deletion loader/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project default="core" basedir="." name="Lucee"
xmlns:resolver="antlib:org.apache.maven.resolver.ant">

<property name="version" value="6.2.0.252-SNAPSHOT"/>
<property name="version" value="6.2.0.253-SNAPSHOT"/>

<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
<classpath>
Expand Down
2 changes: 1 addition & 1 deletion loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.lucee</groupId>
<artifactId>lucee</artifactId>
<version>6.2.0.252-SNAPSHOT</version>
<version>6.2.0.253-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down

0 comments on commit 89f0905

Please sign in to comment.