Recursive Bug in ITSEC_Lib_Directory::create
-
When a user restores a WordPress DB or iThemes settings where the main iThemes Log directory is a completely different drive (D:\) that does not exist of the current machine, ITSEC_Lib_Directory::create lines 140-144 will go in an endless loop and eventually crash. Below is the code we have to apply to your plugin, file class-itsec-lib-directory.php starting line 139, after every update.
$parent = dirname( $dir ); while ( ! empty( $parent ) && ( ! self::is_dir( $parent ) ) ) { $previousParent = $parent; $parent = dirname( $parent ); if($previousParent === $parent){ $parent = null; } }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Recursive Bug in ITSEC_Lib_Directory::create’ is closed to new replies.