js-libraries: removed variable "resourceUrl"The variable "resourceUrl" was always used in a single branch but setfor all branches before. To ease maintenance and simplifycomprehension, it was removed.
tdom: "dom parse -html" implies the "simple" parserThe flag "-simple" is not needed when parsing with the flag "-html". This meansethat dom parse -simple -html ...is equivalent with dom parse -html ...
Always use "--" in "dom parse" when document is interpolatedThis is a safety measure to make sure that the document parsed isnever confused with an option, when the document starts with a "-". Inthe best case, the error message provided by "dom parse" might bemisleading. This might be a problem for user contributed documents(passed as variables, or return values from functions).The double dash is supported in tdom since version 0.9.0.
In essence, this change renames "version_dir" to "version_segment" aswell as "versionDir" to "versionSegment" to reflect the fact, thatthis variable does not denote a directory, but a part of the pathappended to path "resourceDir".
various small fixes for js libraries- fixed page contract in case a non-default version is downloaded- provide always an argument "-version" to resource_info procs- obtain current version number always via resource_info.installedVersion (it refers to CDN and locally installed version)- pass always versionDir via resource_info to ::util::resources::download- always obtain version_dir from resource_info
Port of downstream feature request:when filtering for not graded questions, if the entire exam has not ungraded questions, hide the entire exam block. The purpose is to reduce distractions in the UI.
Improved resource information for external libraries- added vulnerability check for a particular version- centralized URL generation for cdnjs URLS (will reduce maintenance work, when external URL changes)- improve behavior when running without an Internet connection
Fix permission::write_permission_p. Before, the check if the user was the creation_user was always made against the currently logged in user, not the party given by the caller.
Improved consistency of resource-info for the cookieconsentlibraries, added vulnarability infoIn addition, this change makes the package variable "Version" more consistent withother occurences, where version is just the version number. Here, it was the version path.
Don't set result variables for "header_stuff"The method "header_stuff" was changes ages ago toside-effect via the standard OpenACS template::headinterface rather than outputting to a variable, whichhas to be passed around. This change removes someleftover of this time.
Include available version number and vulnerability check on swa pagesThis eases the use of external JavaScript libraries by addingthe available version number and a link for vulnerability checkson the site-wide admin pages (when this information is available)- bumped version number to 5.10.1b6
Do not allow unusual schemas like base64 and json as local URLsThis case was flagged by a vulnerability scan, but at least at the found instanceit was a false positive...
Extended resource info dict with explicit version number and an API call to obtain the newest version numberThe two new optional resource info fields are - versionCheckAPI - installedVersionThese fields are necessary to provide an admin page to checkwhether the installed versions are the most recent ones.
New parameter "scroll_to" for parameter pageThe new parameter allows the code to jump to a named parameter in theparameter editing page. This is very useful for pages with a highnumber of parameters, if just one parameter should be changed.