Security update breaks sites that call the search function from another directory
Hey everyone,
If you use the function to display the results and add the following lines at the top of the script:
// prevent remote command execution
if ((isset($relative_script_path)) &&
($relative_script_path != ".") &&
($relative_script_path != "..")) {
exit();
}
and you are running the function from a directory other than the phpdig directory, your script will break.
Be sure to add "&&($relative_script_path != "../your_relative_script_path")" to the end of that if statement.
|