Tagged: Security
I just found that function-set-avia-backend.php has hard-coded to chmod directories.
@chmod( $folder, 0777 );
Thats not a good idea and bad for a lot of users and hosts.
For my case 755 is fine and there should be an option or something for this, not making everyones directories 777 like that.
Why is that needed ?
Thanks.
Hey peterolle!
It is needed to create a folder for the theme framework.
Best regards,
Yigit
Can you please elaborate on that ?
Thank you.
Hi!
That’s part of the avia_backend_create_folder
function which is currently used in two cases:
– To create the dynamic_avia
folder which contains the dynamically generated stylesheet (a compressed file containing the Styling Options, Quick CSS, etc).
– Create a temporary folder needed when uploading a custom .zip font file (https://vimeo.com/75743285).
Cheers!
Josue
How can I override that to use 755 ?
Thanks.
Yeah and I will have to remember and do that in every single update. Thats what I don’t want to do.
Is there a function, option or something I can apply and forget about it ?
Thanks.
Hi!
avia_backend_create_folder
Is a pluggable function, you can just modify and copy it into your child theme functions.php.
Regards,
Josue
Please share the code I have to add to functions.php.
Thank you.