Skip to content

Commit

Permalink
Fixed encoding config values @{'%something'} in the view engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Mar 27, 2023
1 parent 1a9e0d4 commit e2cea69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- fixed atomic operations in NoSQL QueryBuilder
- added `String.sign(key)` for making of quick checksums
- added `DB().load([conn], opt)` for loading of prepared QueryBuilder queries
- fixed encoding config values `@{'%something'}` in the view engine

========================
0.0.80
Expand Down
2 changes: 1 addition & 1 deletion internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ function view_parse(content, minify, filename, controller) {
if (cmd[1] === '%') {
var t = CONF[cmd.substring(2, cmd.length - 1)];
if (t != null)
builder += '+' + DELIMITER + (t + '').replace(/'/g, "\\'") + DELIMITER;
builder += '+' + DELIMITER + (t + '').encode().replace(/'/g, "\\'") + DELIMITER;
} else
builder += '+' + DELIMITER + (new Function('self', 'return self.$import(' + cmd[0] + '!' + cmd.substring(1) + ')'))(controller) + DELIMITER;
} else if (cmd7 === 'compile' && cmd.lastIndexOf(')') === -1) {
Expand Down

0 comments on commit e2cea69

Please sign in to comment.