gustafn
committed
on 26 Nov 24
Avoid calls to deprecated NaviServer functions
openacs-4/.../tcl/00-icanuse-procs.tcl (+0 -1)
122 122 ::acs::register_icanuse "ns_crypto::scrypt"         {[info commands ::ns_crypto::scrypt] ne ""}
123 123 ::acs::register_icanuse "ns_db currenthandles"      [acs::cmd_has_subcommand ns_db currenthandles]
124 124 ::acs::register_icanuse "ns_deletecookie -samesite" [acs::cmd_error_contains {ns_deletecookie} -samesite]
125 125 ::acs::register_icanuse "ns_hash"                   {[info commands ::ns_hash] ne ""}
126 126 ::acs::register_icanuse "ns_ictl trace idle"        [acs::cmd_error_contains {ns_ictl trace foo} idle]
127 127 ::acs::register_icanuse "ns_info meminfo"           [acs::cmd_has_subcommand ns_info meminfo]
128 128 ::acs::register_icanuse "ns_ip"                     {[info commands ::ns_ip] ne ""}
129 129 ::acs::register_icanuse "ns_mkdtemp"                {[info commands ::ns_mkdtemp] ne ""}
130 130 ::acs::register_icanuse "ns_parsehtml"              {[info commands ::ns_parsehtml] ne ""}
131 131 ::acs::register_icanuse "ns_parsequery -charset"    [acs::cmd_error_contains {ns_parsequery} -charset]
132 132 ::acs::register_icanuse "ns_parseurl -strict"       [acs::cmd_error_contains ns_parseurl -strict]
133 133 ::acs::register_icanuse "ns_pg pid"                 [acs::cmd_has_subcommand ns_pg pid]
134 134 ::acs::register_icanuse "ns_reflow_text -offset"    [acs::cmd_error_contains {ns_reflow_text} -offset]
135 135 ::acs::register_icanuse "ns_server hosts"           [acs::cmd_has_subcommand ns_server hosts]
136 136 ::acs::register_icanuse "ns_server unmap"           [acs::cmd_has_subcommand ns_server unmap]
137 137 ::acs::register_icanuse "ns_set keys"               [acs::cmd_has_subcommand ns_set keys]
138 138 ::acs::register_icanuse "ns_set stats"              [acs::cmd_has_subcommand ns_set stats]
139 139 ::acs::register_icanuse "ns_set values"             [acs::cmd_has_subcommand ns_set values]
140 140 ::acs::register_icanuse "ns_setcookie -samesite"    [acs::cmd_error_contains ns_setcookie -samesite]
141 141 ::acs::register_icanuse "ns_strcoll"                {[info commands ::ns_strcoll] ne ""}
142   ::acs::register_icanuse "ns_subnetmatch"            {[info commands ::ns_subnetmatch] ne ""}
143 142 ::acs::register_icanuse "ns_urlencode -part oauth1" [acs::cmd_error_contains {ns_urlencode -part xxx} oauth1]
144 143 ::acs::register_icanuse "ns_writer"                 {[info commands ::ns_writer] ne ""}
145 144 ::acs::register_icanuse "nsf::config profile"       [expr {[info exists ::nsf::config(profile)] ? $::nsf::config(profile) : 0}]
146 145 ::acs::register_icanuse "nsf::parseargs -asdict"    [acs::cmd_error_contains {nsf::parseargs} -asdict]
147 146
148 147 #
149 148 # At the time "ns_trim -prefix was introduced in NaviServer, a memory
150 149 # leak in nsv_dict was removed that could lead to a growing size of
151 150 # nsd on busy sites.
152 151 #
153 152 ::acs::register_icanuse "nsv_dict"                  [acs::cmd_error_contains {ns_trim} -prefix]
154 153
155 154 #
156 155 # At the time "ns_ip" was introduced in NaviServer, the member
157 156 # "proxied" was added to the result of "ns_conn details".
158 157 #
159 158 # The support for relative redirects was added to NaviServer shortly
160 159 # after this. Previous NaviServer version turned automatically
161 160 # relative URL references into absolute URL by prefixing it with the
162 161 # location as required by RFC 2614.  In 2014, RFC 7231 changed this