Is there any way to rewrite codeigniter’s Upload.php library because I keep facing
escapeshellarg() has been disabled for security reasons
I’ve tried solution in this thread with putting @ in front of escapeshellarg but still cannont upload my images, thats just ignore the warning.
I’ve tried to contact the administrator of my hosting provide but for security reason they cannot enable it.
Is there I can do to trick this so i can upload images?
You can make your own
escapeshellarg, it is a very simple function that only escapes any single quotes in the given string and then adds single quotes around it.If your provider has however disabled other functions that
Upload.phprequires, you may be out of luck after all.You can look up what functions are disabled by creating a simple
.phpfile with the callphpinfo()in it. (search fordisable_functionsin the generated output)