Skip to content

Commit

Permalink
Merge branch '6.2' of https://github.com/lucee/Lucee into 6.2
Browse files Browse the repository at this point in the history
# Conflicts:
#	loader/build.xml
#	loader/pom.xml
  • Loading branch information
michaeloffner committed Dec 23, 2024
2 parents bfa371c + 4073601 commit 205e17c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,9 @@ public static Resource getCanonicalResourceEL(Resource res) {
catch (IOException e) {
return res.getAbsoluteResource();
}
catch (java.nio.file.InvalidPathException ipe) {
return res.getAbsoluteResource();
}
}

public static String getNormalizedPathEL(Resource res) {
Expand All @@ -779,6 +782,9 @@ public static String getNormalizedPathEL(Resource res) {
catch (IOException e) {
return res.toString();
}
catch (java.nio.file.InvalidPathException ipe) {
return res.toString();
}
}

public static Resource getNormalizedResourceEL(Resource res) {
Expand All @@ -789,6 +795,9 @@ public static Resource getNormalizedResourceEL(Resource res) {
catch (IOException e) {
return res.getAbsoluteResource();
}
catch (java.nio.file.InvalidPathException ipe) {
return res.getAbsoluteResource();
}
}

public static File getCanonicalFileEL(File file) {
Expand Down
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.250-SNAPSHOT"/>
<property name="version" value="6.2.0.252-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.250-SNAPSHOT</version>
<version>6.2.0.252-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down
2 changes: 1 addition & 1 deletion test/tickets/LDEV4602.cfc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
component extends = "org.lucee.cfml.test.LuceeTestCase" {
component extends = "org.lucee.cfml.test.LuceeTestCase" skip=true{

function run( testResults, testBox ){
describe( "bytecode testing", function(){
Expand Down

0 comments on commit 205e17c

Please sign in to comment.