php3 fix for detection class; add use of db_addslashes() for when we re-insert

table data to a new table in pg (altertable/column)
This commit is contained in:
Miles Lott 2001-11-29 03:58:22 +00:00
parent 9165bf5f60
commit 6330681793
2 changed files with 2 additions and 2 deletions

View File

@ -387,7 +387,7 @@
case 'text': case 'text':
case 'timestamp': case 'timestamp':
case 'varchar': case 'varchar':
$sSQL .= "'" . $oProc->m_odb->f($i) . "'"; $sSQL .= "'" . $oProc->m_odb->db_addslashes($oProc->m_odb->f($i)) . "'";
break; break;
default: default:
$sSQL .= $oProc->m_odb->f($i); $sSQL .= $oProc->m_odb->f($i);

View File

@ -27,7 +27,7 @@
$f = PHPGW_SERVER_ROOT . '/' . $entry . '/setup/setup.inc.php'; $f = PHPGW_SERVER_ROOT . '/' . $entry . '/setup/setup.inc.php';
if (@file_exists ($f)) if (@file_exists ($f))
{ {
@include($f); include($f);
$setup_info[$entry]['filename'] = $f; $setup_info[$entry]['filename'] = $f;
} }
} }