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

captchta_helper and Severity: Warning --> unlink(./captcha/fonts) Is a directory #1678

Closed
Lechus opened this issue Aug 2, 2012 · 2 comments

Comments

@Lechus
Copy link

Lechus commented Aug 2, 2012

I think it's something to be fixed by replacing
if ($filename != "." and $filename != ".." and $filename != "index.html")
to
if ($filename != "." and $filename != ".." and $filename != "index.html" and $filename != "fonts")

pickupman added a commit to pickupman/CodeIgniter that referenced this issue Aug 19, 2012
@pickupman
Copy link
Contributor

I have updated the code to check if the file is a .jpg file since that are the files that are generated by the captcha helper. Previously the code only ignored, '.', '..', 'index.html' filenames. It would also try and delete a subfolder that may have contained the font_path.

@alexbilbie
Copy link
Contributor

Fixed in c557083

nonchip pushed a commit to nonchip/CodeIgniter that referenced this issue Jun 29, 2013
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

3 participants