-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into remove-whitespace
- Loading branch information
Showing
206 changed files
with
898 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/03.reference/01.functions/applicationpathcacheclear/function.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: argon2checkhash | ||
title: Argon2CheckHash | ||
id: function-argon2checkhash | ||
related: | ||
categories: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ categories: | |
- array | ||
--- | ||
|
||
create a new array. shorthand syntax is []. | ||
create a new array. Shorthand syntax is []. |
6 changes: 6 additions & 0 deletions
6
docs/03.reference/01.functions/arrayremoveduplicates/_examples.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
```luceescript+trycf | ||
arrayWithDupes=[ "Swansea Jack", "Bob the Railway Dog", "Banjo", "Cosmo", "Canelo", "Waghya", "Banjo", "Gelert", "Bob the Railway Dog", "Waghya", "Banjo", "Gelert" ]; | ||
dump( arrayWithDupes ); | ||
arrayWithoutDupes= arrayRemoveDuplicates( arrayWithDupes ); | ||
dump( arrayWithoutDupes ); | ||
``` |
2 changes: 1 addition & 1 deletion
2
docs/03.reference/01.functions/arrayremoveduplicates/function.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: arraysplice | ||
title: ArraySplice | ||
id: function-arraysplice | ||
related: | ||
categories: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/03.reference/01.functions/binarydecode/_arguments/precise.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
if set to true the input must follow the rule for that encoding a 100%, the decryptor will not try to interpret inputs that are not a 100% correct. This should be used to avoud false positives. | ||
if set to true the input must follow the rule for that encoding a 100%, the decryptor will not try to interpret inputs that are not a 100% correct. This should be used to avoid false positives. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: clearTimeZone | ||
title: ClearTimeZone | ||
id: function-clearTimeZone | ||
categories: | ||
- datetime | ||
|
2 changes: 1 addition & 1 deletion
2
docs/03.reference/01.functions/componentlistpackage/function.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
docs/03.reference/01.functions/configimport/_arguments/flushExistingData.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
if true that existing data get replaced with the given data, if set to false they get updated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: configImport | ||
title: ConfigImport | ||
id: function-configimport | ||
related: | ||
categories: | ||
|
1 change: 1 addition & 0 deletions
1
docs/03.reference/01.functions/configtranslate/_arguments/charset.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
charset to use to read the XML file, if not defined, Lucee will use the default resource charset. |
1 change: 1 addition & 0 deletions
1
docs/03.reference/01.functions/configtranslate/_arguments/mode.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Only used when type is set to [server], should be the resulting json set for single or multi mode. |
1 change: 1 addition & 0 deletions
1
docs/03.reference/01.functions/configtranslate/_arguments/source.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Path to the Lucee XML file (lucee-server.xml or lucee-web.xml.cfm) file or the data itself as a String. |
1 change: 1 addition & 0 deletions
1
docs/03.reference/01.functions/configtranslate/_arguments/target.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Path to the Lucee XML file (lucee-server.xml or lucee-web.xml.cfm) file or the data itself as a String. |
1 change: 1 addition & 0 deletions
1
docs/03.reference/01.functions/configtranslate/_arguments/type.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Config Context to manipulate, server or web context. |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: configTranslate | ||
id: function-configtranslate | ||
related: | ||
categories: | ||
--- | ||
|
||
translate an old Lucee XML configuration to the new JSON configuration |
2 changes: 1 addition & 1 deletion
2
docs/03.reference/01.functions/createuniqueid/_arguments/type.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
If the string "counter" is passed then then it's only unique for this instance in this lifecycle, otherwise the returned value will be a 22 character UUID, encoded as a URL-safe Base64. | ||
If the string "counter" is passed then it's only unique for this instance in this lifecycle, otherwise the returned value will be a 22 character UUID, encoded as a URL-safe Base64. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
if set to true the input must follow the rule for that encoding a 100%, the decryptor will not try to interpret inputs that are not a 100% correct. This should be used to avoud false positives. | ||
if set to true the input must follow the rule for that encoding a 100%, the decryptor will not try to interpret inputs that are not a 100% correct. This should be used to avoid false positives. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
*There are currently no examples for this function.* | ||
```luceescript+trycf | ||
// binary data | ||
data = toBinary("abcd"); | ||
// generate the key | ||
key = generateSecretKey("AES"); | ||
// encrypt string | ||
encryptValue = encryptBinary(data, key); | ||
writeDump(encryptValue); | ||
// decrypt string | ||
decryptValue = decryptBinary(encryptValue, key); | ||
writeDump(decryptValue); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```luceescript+trycf | ||
dump( directoryinfo( GetTempDirectory() ) ); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: directoryinfo | ||
title: DirectoryInfo | ||
id: function-directoryinfo | ||
related: | ||
categories: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
specify the output format of the dump, the following formats are supported: | ||
|
||
- simple: - a simple html output (no JavaScript or CSS) | ||
- text (default output="console"): plain text output (no html) | ||
- html (default output="browser"): regular output with html/CSS/JavaScript | ||
- classic: classic view with html/CSS/JavaScript | ||
- simple: - a simple HTML output (no JavaScript or CSS) | ||
- text (default output="console"): plain text output (no HTML) | ||
- html (default output="browser"): regular output with HTML/CSS/JavaScript | ||
- classic: classic view with HTML/CSS/JavaScript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
*There are currently no examples for this function.* | ||
```luceescript+trycf | ||
encode = encodeForLDAP("I ** love * lucee"); | ||
dump(encode); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
```luceescript+trycf | ||
// example of an url variable: | ||
// http://some.example.domain/dogs.cfm?name=lassie | ||
url.name="lassie"; | ||
SQLQuery="SELECT * FROM dogs WHERE name='#url.name#';"; | ||
dump( SQLQuery ); | ||
// example of an url sql injection: | ||
// http://some.example.domain/dogs.cfm?name='%20or%20'1'='1 | ||
url.name= "' or '1'='1"; | ||
SQLQuery="SELECT * FROM dogs WHERE name='#url.name#';"; | ||
dump( SQLQuery ); | ||
// example of preventing sql injection with encodeForSQL in MySQL: | ||
SQLQuery="SELECT * FROM dogs WHERE name='#encodeForSQL( url.name, 'mySql' )#';"; | ||
dump( SQLQuery ); | ||
``` |
Oops, something went wrong.