From: Robert A. V. II <bo...@pi...> - 2002-10-02 05:47:59
|
The database allows question names of up to 30 characters but the PHP code limits it to 10. This patch changes the PHP limit to match the database limit: diff -ur phpESP/admin/include/function/survey_update.inc phpESP-patched/admin/include/function/survey_update.inc --- phpESP/admin/include/function/survey_update.inc 2002-09-11 12:52:30.000000000 -0400 +++ phpESP-patched/admin/include/function/survey_update.inc 2002-10-02 01:45:54.000000000 -0400 @@ -138,7 +138,7 @@ $HTTP_POST_VARS['name'] = $str1; } $HTTP_POST_VARS['name'] = strtoupper(substr(eregi_replace( - "[^A-Z0-9]+", "_", trim($HTTP_POST_VARS['name'])), 0, 10)); + "[^A-Z0-9]+", "_", trim($HTTP_POST_VARS['name'])), 0, 30)); $HTTP_POST_VARS['name'] = ereg_replace('_$',"",$HTTP_POST_VARS['name']); // constraint: question type required -- Robert August Vincent, II (pronounced "bob" or "bob-vee") bo...@pi..., geek@large, com...@bo... |