• last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Quote unallowed HTML according to acs-tcl.documentation__check_proc_doc

Rename proc according to convention enforced in acs-tcl: naming__proc_naming

Reinstate the notnull validation constraint where missing

    • -2
    • +2
    ./forums/lib/message/threads-chunk.tcl
    • -2
    • +2
    ./forums/lib/user/post-history-chunk.tcl
    • -5
    • +5
    ./forums/www/admin/subscribe-others-2.tcl
    • -2
    • +2
    ./forums/www/admin/subscribe-others.tcl
  1. … 10 more files in changeset.
re-add notnull value constraint on message_id

This constraint was removed about 14 days ago. Without this constraint,

errors like the following will show up....

[30/Aug/2022:14:07:29.820625][3102633.7f152c28d700][-conn:openacs.org:default:0:196214-] Error: rp_handler no-script-abort: errorMsg can't read "message(forum_id)": no such variable while serving GE

T /forums/message-view?message_id HTTP/1.1

: ad_url </forums/message-view> maps to file </var/www/openacs.org/packages/forums/www/message-view.adp>

: TCL LOOKUP VARNAME message

: can't read "message(forum_id)": no such variable

: while executing

: "forum::get -forum_id $message(forum_id) -array forum"

Probably, in many more cases, the incorrect removal of the notnull constrain performed by [1]

requires the same fix.

[1] https://github.com/openacs/forums/commit/c403e3134ce4e73ba94a80540a8b0f3cb1651ed0#diff-d35c736495ede0174fb39791ab660c5cd1a4ca467db2c4741cfc935167d7e5a8

handle clases, where "nt_load_end" is not provided

Replace message keys inside message keys. Many thanks to Monika Andergassen.

    • -1
    • +1
    ./acs-subsite/catalog/acs-subsite.de_DE.ISO-8859-1.xml
    • -1
    • +1
    ./acs-subsite/catalog/acs-subsite.en_US.ISO-8859-1.xml
    • -1
    • +1
    ./acs-subsite/catalog/acs-subsite.it_IT.ISO-8859-1.xml
Harden page contract

    • -9
    • +2
    ./acs-subsite/www/user/portrait/upload.tcl
Make script more robust to agents that won't specify the tmpfile via using the api to retrieve the file information

    • -6
    • +14
    ./acs-subsite/www/user/portrait/upload.tcl
Fix typo

    • -2
    • +4
    ./acs-templating/tcl/element-procs.tcl
template::element validation reform: do not run custom user-defined validation on fields that are not formally correct

Rationale: user-defined validation often assumes some basic consistency of the submitted value. When this is not formally correct, users might have to reimplement the whole formal validation in their custom fields in order to prevent exceptions. By preventing their custom blocks from being executed, users can rely on their custom fields to be run only against sane values.

    • -20
    • +38
    ./acs-templating/tcl/element-procs.tcl
Restore formatting in procs doc

    • -79
    • +99
    ./acs-templating/tcl/element-procs.tcl
Normalize indentation according to editor hints

    • -366
    • +366
    ./acs-templating/tcl/element-procs.tcl
comment tags, which are NOT supported by HTML5, allow "abbr" in enhanced text

Fix query syntax

improve styling for Bootstrap 5

provide exception handler for cleanup

    • -14
    • +19
    ./boomerang/tcl/boomerang-procs.tcl
further improve recording, when just navigational timing is effective

Improved robustness

When not nt_con_st or nt_con_end is provided, set nt_tcp_time to 0

    • -13
    • +27
    ./boomerang/tcl/boomerang-procs.tcl
Reduce verbosity

Test template::util::list_to_lookup

    • -1
    • +30
    ./acs-templating/tcl/test/util-procs.tcl
Deprecate template::util::nvl

    • -29
    • +1
    ./acs-templating/tcl/test/util-procs.tcl
Deprecate template::util::list_to_array

Deprecate template::util::is_true, implemented as a simple string command oneliner since 2015 and inline occurrences

    • -2
    • +2
    ./acs-authentication/tcl/authority-procs.tcl
    • -2
    • +2
    ./acs-authentication/tcl/sync-procs.tcl
    • -2
    • +2
    ./acs-developer-support/www/request-info.tcl
    • -2
    • +2
    ./acs-lang/www/admin/locale-delete.tcl
    • -2
    • +2
    ./acs-lang/www/admin/message-delete.tcl
    • -1
    • +1
    ./acs-lang/www/admin/message-undelete.tcl
    • -2
    • +2
    ./acs-subsite/tcl/subsite-navigation-procs.tcl
  1. … 19 more files in changeset.
Fix typo

implemented ad_html_security_check based on ns_parsehtml

    • -44
    • +144
    ./acs-tcl/tcl/text-html-procs.tcl
Shorten idiom

    • -11
    • +2
    ./acs-templating/tcl/util-procs.tcl
Test template::util::is_nil

    • -1
    • +24
    ./acs-templating/tcl/test/util-procs.tcl
Use "ns_parsehtml" for speed and correctness when available

The new NaviServer built-in command "ns_parsehtml" is used on

several occasions in the code when available, namely in

- util_close_html_tags

- escaping disallowed HTML tags in ad_text_to_html

- util_close_html_tags

The command "util_close_html_tags" has a long history of troubles,

since it was implemented originally based on regular expressions. It

was reported in Jan 2009, that the function took on certain forums

entries 6 to 9 hours (e.g. /forums/message-view?message_id=357753) to

finish. Therefore, at this time a quick version based on tdom was

introduced, which reduced at that time the performance to 7.3

seconds. However, the tdom-based version tend to fail on invalid HTML,

so it could cover only a few cases. The new "ns_parsehtml" is more

robust and works very stable on openacs.org with the know problem

cases. Furthermore, this version is also significantly faster than the

tdom version.

    • -33
    • +269
    ./acs-tcl/tcl/text-html-procs.tcl
    • -6
    • +17
    ./acs-tcl/tcl/test/html-conversion-procs.tcl
Fix doc

Deprecate template::util::array_to_vars and template::util::vars_to_array: their functionality can be easily inlined by using the array command

    • -1
    • +3
    ./acs-content-repository/tcl/filter-procs.tcl
    • -3
    • +11
    ./acs-templating/tcl/util-procs.tcl