From 103798878752a45a337413ce0b8f42961583f34c Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 13 Oct 2006 23:49:48 +0000 Subject: [PATCH] Now admin/index.php checks for proper prefixes (MDL-6230) Merged from MOODLE_17_STABLE --- admin/index.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/admin/index.php b/admin/index.php index a22daa85f8..4570e516e6 100644 --- a/admin/index.php +++ b/admin/index.php @@ -52,6 +52,13 @@ error("The PHP server variable 'file_uploads' is not turned On - $documentationlink"); } + if (empty($CFG->prefix) && $CFG->dbtype != 'mysql') { //Enforce prefixes for everybody but mysql + error('$CFG->prefix can\'t be empty for your target DB (' . $CFG->dbtype . ')'); + } + + if ($CFG->dbtype == 'oci8po' && strlen($CFG->prefix) > 2) { //Max prefix length for Oracle is 2cc + error('$CFG->prefix maximum allowed length for Oracle DBs is 2cc.'); + } /// Check that config.php has been edited -- 2.39.5