Skip to content

Commit 049b65c

Browse files
authored
fix markdown formatting
1 parent 2ca68a5 commit 049b65c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
SQLPage now launches password hashing operations on a separate thread pool, and can continue processing other requests while waiting for passwords to be hashed.
1515
- Easier configuration for multiple menu items. Syntax like `SELECT 'shell' as component, '["page 1", "page 2"]' as menu_item'` now works as expected. See the new `sqlpage_shell` definition in [the small sql game example](./examples/corporate-conundrum/) and [this discussion](https://github.com/lovasoa/SQLpage/discussions/91).
1616
- New `sqlpage.exec` function to execute a command on the server. This allows you to run arbitrary code on the server, and use the result in your SQL queries. This can be used to make external API calls, send emails, or run any other code on the server.
17-
```sql
17+
```sql
1818
select 'card' as component;
1919
select value->>'name' as title, value->>'email' as description
2020
from json_each(sqlpage.exec('curl', 'https://jsonplaceholder.typicode.com/users'));
2121
```
22+
2223
This function is disabled by default for security reasons. To enable it, set the `allow_exec` configuration parameter to `true` in the [configuration](./configuration.md). Enabling it gives full access to the server to anyone who can write SQL queries on your website (this includes users with access to the local filesystem and users with write access to the `sqlpage_files` table on your database), so be careful !
2324
- New `sqlpage.url_encode` function to percent-encode URL parameters.
2425
```sql

0 commit comments

Comments
 (0)