Which is safely
<?php include(TEMPLATEPATH.'/searchform.php')?> or
<?php include('searchform.php')?> ? The searchform.php is in the theme directory. Thanks a lot...
Which is safely
<?php include(TEMPLATEPATH.'/searchform.php')?> or
<?php include('searchform.php')?> ? The searchform.php is in the theme directory. Thanks a lot...
safe would be like the following
<?php $search_form = TEMPLATEPATH.DIRECTORY_SEPARATOR.'searchform.php'; ?>
<?php if (file_exists($search_form) include($search_form);?>Ok. Thanks. Default theme uses first code. Is this a risk?
How is there a security problem if I use <?php include('searchform.php')?>. What is the risk?
This topic has been closed to new replies.