Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12576/include
Modified Files:
functions_installer.inc.php
Log Message:
Do not allow users to have an empty db prefix.
Index: functions_installer.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_installer.inc.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- functions_installer.inc.php 10 Feb 2005 15:27:18 -0000 1.38
+++ functions_installer.inc.php 22 Feb 2005 10:10:03 -0000 1.39
@@ -488,6 +488,10 @@
// and have access to our's. So we randomize the SQLite dbname.
$_POST['sqlitedbName'] = $_POST['dbName'] . '_' . md5(time());
}
+
+ if (empty($_POST['dbPrefix']) && empty($serendipity['dbPrefix'])) {
+ $errs[] = sprintf(EMPTY_SETTING, INSTALL_DBPREFIX);
+ }
$serendipity['dbType'] = $_POST['dbType'];
// Probe database
|