CodeIgniter Forums
someone is trying to change my ci index file how to make it secure - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: someone is trying to change my ci index file how to make it secure (/showthread.php?tid=68706)



someone is trying to change my ci index file how to make it secure - Marku - 08-15-2017

[13-Aug-2017 11:27:58 PRC] PHP Warning:  preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: unmatched parentheses at offset 17 in /home/nmcth/public_html/index.php(12) : runtime-created function on line 1

[13-Aug-2017 11:27:58 PRC] PHP Warning:  strlen() expects parameter 1 to be string, array given in /home/nmcth/public_html/index.php(12) : runtime-created function on line 1

i found this in my error_log file. how can i fix it and know from which root it has been done


RE: someone is trying to change my ci index file how to make it secure - Diederik - 08-15-2017

It could come from numerous sources as explained in your other topic...

FTP is likely (so check FTP logs). Or some code in your website allows a visitor to upload file, where your code does not validate that the uploaded file is an image for example so someone could upload a .php file.