Skip to content

Commit

Permalink
LDEV-3328 add missing is windows path check
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 23, 2024
1 parent f29d1b1 commit ec3e7ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/lucee/runtime/PageSourceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ public PageSource getRealPage(String realPath) {
else realPath = realPath.replace('\\', '/');
RefBoolean _isOutSide = new RefBooleanImpl(isOutSide);

if (realPath.indexOf('/') == 0) {
if (realPath.indexOf('/') == 0 || ResourceUtil.isWindowsPath(realPath)) {
_isOutSide.setValue(false);
}
else if (realPath.startsWith("./")) {
Expand All @@ -983,7 +983,7 @@ public Resource getRealResource(String realPath) {
else realPath = realPath.replace('\\', '/');
RefBoolean _isOutSide = new RefBooleanImpl(isOutSide);

if (realPath.indexOf('/') == 0) {
if (realPath.indexOf('/') == 0 || ResourceUtil.isWindowsPath(realPath)) {
_isOutSide.setValue(false);
}
else if (realPath.startsWith("./")) {
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.249-SNAPSHOT"/>
<property name="version" value="6.2.0.250-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.249-SNAPSHOT</version>
<version>6.2.0.250-SNAPSHOT</version>
<packaging>jar</packaging>

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

0 comments on commit ec3e7ad

Please sign in to comment.