Bug? “Enable Sending Referers”
Hello. I’m new to WordPress and new to working with CVS and nightly builds, so if I don’t give enough info, please let me know and I’ll try to do better next time.
There seem to be problems with the check_admin_referer script.
error message does not accurately describe the error.
—- I installed from the CVS today (May 18) without too much trouble, but when I tried to activate plugins or change user levels I got the message “Sorry, you need to enable sending referrers, for this feature to work.” My referrers *were* enabled, as I saw after echoing the variables tested by check_admin_referer.
url_shorten routine causes incorrect check_admin_referer failure for some admin urls.
If the admin url (after having “http://www.” chopped off the front) is more than 32 but less than 35 characters, check_admin_referer will incorrectly fail. This is because url_shorten will *not* change the last several characters to “…” in the admin url, but it *will* change those characters to “…” in the referer url. This only happens when the admin url is between 32 and 35 characters (as mine is). Striping “url_shorten” from the check_admin_referer seems to fix this problems, but may have other ramifications with which I am unaware.
- The topic ‘Bug? “Enable Sending Referers”’ is closed to new replies.