Bug in ‘Local file with an absolute path is not allowed.’
-
Hi, I have found a little bug in your function lana_downloads_manager_parse_file_path in file lana-downloads-manager.phb, line 1390.
The problem is for testing purposes in windows server at localhost. With the last update you compare $file_path and $wp_uploads_dir, and the comparison fails in some cases as there are some diference in slashes of windows server routes.
I found the problem is solved easily if you use wordpress normalize function in line 1385 like that $file_path = wp_normalize_path(realpath( $file_path ));
Thank you very much
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Bug in ‘Local file with an absolute path is not allowed.’’ is closed to new replies.