Skip to content

Commit

Permalink
check "connect" before executing any action
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Oct 20, 2023
1 parent 5af3ceb commit 57dac7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions core/src/main/cfml/context/Admin.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@
<cfargument name="password" required="yes" type="string">
<cfargument name="attributeCollection" required="yes" type="struct">
<cfargument name="callerId" required="no" type="string" default="undefined">

<cfset var result="">
<cfset var id=getLuceeId()[arguments.type].id>
<cfset var sec=getLuceeId()[arguments.type].securityKey>
<cfif not listFind(arguments.callerId,id)>
<cfset var pw=Decrypt(arguments.password,sec)>
<cfadmin action="connect"
type="#arguments.type#"
password="#pw#">
<cfadmin
type="#arguments.type#"
password="#Decrypt(arguments.password,sec)#"
password="#pw#"
attributeCollection="#arguments.attributeCollection#"
providedCallerIds="#arguments.callerId#"
returnVariable="result">
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="5.4.4.21-SNAPSHOT"/>
<property name="version" value="5.4.4.22-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>5.4.4.21-SNAPSHOT</version>
<version>5.4.4.22-SNAPSHOT</version>
<packaging>jar</packaging>

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

0 comments on commit 57dac7c

Please sign in to comment.