If you ns_register_adptag or ns_adp_registeradp a fancy
tag with non-lowercase characters, the tag won't be
processed.
I.e. both of these work under AOLserver 3.x:
catch {ns_register_adptag sometag procedure}
catch {ns_register_adptag someTag procedure}
but only the first works under AOLserver 4 (latest CVS).
Please see attached patch.
Logged In: YES
user_id=21885
Indeed, in nsd/adpparse.c, GetTag() converts the input to
lower-case, so RegisterCmd() should do the same.
I also see in nsd/tclcmds.c that ns_adp_registertag is using
NsTclAdpRegisterAdpCmd() which makes it equivalent to
ns_adp_registeradp.
However, there is a command ns_register_adptag which uses
NsTclRegisterTagCmd(). Should ns_adp_registertag be the
same as ns_adp_registeradp, or ns_register_adptag? I'm in
favor of getting rid of ns_register_adptag (as the
"ns_register" prefix implies request-handling like
ns_register_proc, ns_register_filter, etc.) and make
ns_adp_registertag call NsTclRegisterTagCmd() instead of
NsTclAdpRegisterAdpCmd().
Logged In: YES
user_id=522678
The changes you propose should probably be considered as a
separate feature request, since they would break backwards
compatibility, and so I think wouldn't be applied to the
same branches as the fix for this case-insensitivity bug.
I agree that the current command names are confusing. I
would be in favor of the changes you suggest. (We should
also add documentation for these commands to the Wiki.)