• last updated 13 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix spelling errors

  1. … 46 more files in changeset.
Improve robustness of "file delete" operations

  1. … 18 more files in changeset.
Get rid of strange construct: [lindex [array get $array $name] 1]

  1. … 2 more files in changeset.
- use util::trim_leading_zeros instead of private function

  1. … 1 more file in changeset.
add function "lc_trim_leading_zeros" to acs-lang localization procs, since date-time procs are not acs-core, such that the function defined there cannot be used in the core

Fix date computation: year of date 07072017 was treated as an octal number. (Example [lc_time_fmt 0708-08-17 %Q])

Remove unneeded test and improve documentation

Some more Tcl cleanup

- use curly brackes to enable byte code compilation

- don't use "[expr ...]" when not needed

- prefer "incr i -1" over "set i [expr {$i - 1}] "

  1. … 15 more files in changeset.
- add nonces to script tags

- add body handlers

  1. … 7 more files in changeset.
- use for hex codes 2-digit notation \xHH to make it compatible for tcl8.6

  1. … 5 more files in changeset.
- fix spelling of variable name

- Make parsing of "Accept-Language" header fields more robust:

ignore spaces after the comma, ignore wildcard value "*"

- Accept locales as syntactically correct when these contain numeric values (such as e.g. "es_419" for “Latin American Spanish”).

Since lang::conn::valid_locale_p is used in lang::conn::get_accept_language_header, OpenACS throws exceptions

on invalid locales, these caused problem even when these are low on the preference list of the Accept-Language header field.

- allow empty locale cookie

- return the invalid cookie in the error

- add validator for locale (useful, when headers or locale-cookie were hacked)

- provide an error message for invalid locale values

- improve indentation

.xql-file reform of acs-lang

- remove unneeded sql queries

lang::catalog::reset_upgrade_status_message_keys.reset_status"

lang::catalog::import_from_file.reset_upgrade_status_messages

lang::catalog::import_from_file.mark_message_as_deleted

lang::catalog::import_from_file.mark_message_key_as_deleted

lang::message::register.message_exists_p

- add per-request caching of acs_translator_mode_p

- no need to use backslash for continuation between curly brackets

- improve readability of code

- modernize tcl

  1. … 8 more files in changeset.
- add dropped error message variable

- remove useless if-statement

- use ad_log for error reporting to ease debugging

- simplify regular expression code for message keys: use build in functionality of regexp

- fix type in documentation

- prefer ns_quotehtml over ad_quotehtml

  1. … 27 more files in changeset.
- add editor hints to keep spaces/tabs in the furture more consistent

    • -0
    • +6
    ./test/acs-lang-localization-procs.tcl
  1. … 741 more files in changeset.
- remove globals for errorInfo and use namespace qualifiers instead

  1. … 14 more files in changeset.
- don't raise an error on missing substitution variables, but write an error to the error.log (otherwise, one can get recursive errors on missing variables)

- standardize url construction to protect against injection attacks

  1. … 9 more files in changeset.