• last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix typo, allow to resuse tDOM object built when fixing markup instead of parsing again

- new utility to try 'fixing' invalid HTML

- fixed recognition of protocol agnostic urls

- use location from connection context and configurations to determine whether full urls are local

- optionally use new utility when plain parsing fails to try accepting a broader kind of invalid markup

- some update in test cases

- rename of the utilities with the 'dom' prefix, to make clear that this is the dom approach for sanitizing markup.

As it is sometimes prone to format and content loss, its use should be carefully considered.

- make qn more robust, when runnin on the topLevel

- move test cases from utility procs into regression test

Improved behavior on links by using RFC compliant URL recognition.

Created (working) test cases

file text-html-procs.tcl was initially added on branch oacs-5-9.

    • -0
    • +0
    /openacs-4/packages/acs-tcl/tcl/test/text-html-procs.tcl
Fix typo

New utility to sanitize HTML allowing to specify different sets of tags,

attributes and protocols to allow and two generic policies: strip javascript

and remove external references. It can also be used only for validation.

Removed leftover statement

Keep old proc behavior regarding deletion of the package so we don't break any previous code

Use lreverse instead of inverting the list manually

Use better idiom to concatenate subnodes

- remove trailing white-space

- white space changes (replace tabs, remove trailing white space, fix indentation)

    • -408
    • +407
    /openacs-4/packages/acs-tcl/tcl/00-database-procs.tcl
- white space change (replace trailing spaces)

- white space change

    • -567
    • +567
    /openacs-4/packages/acs-tcl/tcl/text-html-procs.tcl
- white space change

    • -171
    • +171
    /openacs-4/packages/acs-tcl/tcl/text-html-procs.tcl
- use list operator for a more declarative reading

- fix indentation

- avoid nesting double quotes

Allow to delete node_ids having subnodes. This simply triggers unmount and delete

of site node, package instances and all its tree structure as one could do manually,

but packages themself are still responsible to "clean their own mess".

    • -124
    • +158
    /openacs-4/packages/acs-tcl/tcl/site-nodes-procs.tcl
Don't use 'if not exists' idiom for postgres as present since version 9.5 only

Create stubs only when required and close to actual methods

- reduce verbosity

new procs must be created when util object exists!

Check for new require object's features explicitly by utility presence rather than oacs version. Do check only at file load time and define procs accordingly

- improve wording

- use ns_parseurl when available

- provide emulation for ns_parseurl for older versions of NaviServer or AOLserver

- use function instread of variable

- regenerated documentation

  1. … 191 more files in changeset.