bug fix in v191

K

kysa

Guest
thanks for the bug fix... for existing dadabik databases using v190, do we need to do a complete reinstall, or are there just a few files we can swap in?...
 
E

Eugenio

Guest
kysa wrote:
>
> thanks for the bug fix... for existing dadabik databases
> using v190, do we need to do a complete reinstall, or are
> there just a few files we can swap in?...

Here are the modifications.
Line numbers could be not exactly the same.

business_logic.php - line 1272

add these lines before "if ($action == "mail.php"){"

global $table_name;
$sql = substr($sql, strlen("select * from $table_name"),
strlen($sql)-strlen("select * from $table_name"));


form.php - line 161
from
$select_without_limit = stripslashes($sql);
to
$select_without_limit = "select * from $table_name ".stripslashes($sql);

business_logic.php - line 1284
from
$navigation_tool .= "<td><form method=\"post\"
action=\"".$action."\"><input type=\"hidden\" name=\"function\"
value=\"".$function."\"><input type=\"hidden\" name=\"sql\"
value=\"".$sql."\"><input type=\"hidden\" name=\"name_mailing\"
value=\"".$name_mailing."\"><input type=\"hidden\" name=\"page\"
value=\"".$i."\"><input type=\"submit\"
value=\"".($i+1)."\"></form></td>";

to
$navigation_tool .= "<td><form method=\"post\"
action=\"".$action."\"><input type=\"hidden\" name=\"function\"
value=\"".$function."\"><input type=\"hidden\" name=\"sql\"
value=\"".htmlspecialchars($sql)."\"><input type=\"hidden\"
name=\"name_mailing\" value=\"".$name_mailing."\"><input type=\"hidden\"
name=\"page\" value=\"".$i."\"><input type=\"submit\"
value=\"".($i+1)."\"></form></td>";

(Latest version of DaDaBIK when this message was posted: 1.9.1)
 
Top