Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for is_referral() #1255

Closed
pleaseremove opened this issue Apr 12, 2012 · 1 comment
Closed

Documentation for is_referral() #1255

pleaseremove opened this issue Apr 12, 2012 · 1 comment

Comments

@pleaseremove
Copy link

Currently the documentation states "Returns TRUE/FALSE (boolean) if the user agent was referred from another site" however this is not what the function does. The function doesn't check the if the refferer is for the current site and simply returns true if one is set (which it will be for all links within a site). Either the documentation needs updating or this function needs to be updated to do as described.

@narfbg
Copy link
Contributor

narfbg commented Jun 14, 2012

I'd consider it a bug.

At the very least - everybody can check if the value exists with ! empty($_SERVER['HTTP_REFERER']), so the method should do more than that.

@narfbg narfbg closed this as completed in a0836b9 Oct 24, 2012
nonchip pushed a commit to nonchip/CodeIgniter that referenced this issue Jun 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants