Code Duplication    Length = 3-3 lines in 2 locations

install/install.queries.php 1 location

@@ 85-87 (lines=3) @@
82
            $data = array_merge($data, array("task" => $json));
83
84
            $abspath = str_replace('\\', '/', $data['root_path']);
85
            if (substr($abspath, strlen($abspath) - 1) == "/") {
86
                $abspath = substr($abspath, 0, strlen($abspath) - 1);
87
            }
88
            $_SESSION['abspath'] = $abspath;
89
            $_SESSION['url_path'] = $data['url_path'];
90

install/upgrade_ajax.php 1 location

@@ 218-220 (lines=3) @@
215
            $_SESSION['fullurl'] = $_POST['fullurl'];
216
            $abspath = str_replace('\\', '/', $_POST['abspath']);
217
            $_SESSION['abspath'] = $abspath;
218
            if (substr($abspath, strlen($abspath) - 1) == "/") {
219
                $abspath = substr($abspath, 0, strlen($abspath) - 1);
220
            }
221
            $okWritable = true;
222
            $okExtensions = true;
223
            $txt = "";