[Solved in 5.4] 2 bugs in list.php

If you've programmed a new HuMo-genealogy feature (that you'd like to see included in the official version), please upload and describe your work here.
Post Reply
kintree
Posts: 18
Joined: Sat 18 May 2019, 19:07

[Solved in 5.4] 2 bugs in list.php

Post by kintree »

Huub

One serious error, which can lead to fatal SQL errors:

Line 953: $query='';

This code should PRECEDE the condition in Line 952, so that $query is correctly initialised when the condition fails.

One minor error, obviously untested by its coder:

Line 782: else strtoupper($selection['gednr']=$_POST['gednr']);

The code intended was probably: else $selection['gednr']=strtoupper($_POST['gednr']);
User avatar
Huub
HuMo-genealogy programmer
HuMo-genealogy programmer
Posts: 2693
Joined: Wed 27 Aug 2008, 11:34
Location: Heerhugowaard, Netherlands
Contact:

Re: 2 bugs in list.php

Post by Huub »

Hello kintree,

I have tested both piece of code:

$query is allready declared at line 672:

Code: Select all

$query='';
Line 782 is changed for the next version. I have tested the old code, but it didn't matter if "i" or "I" was used in the search for gedcomnumber.
But the code was wrong, and is improved now!

As you probably can see, the codes of several scripts is changed a lot in many years. We are still trying to improve the scripts (by using functions etc.), and sometimes i'm completely rebuilding a script. But it's a hobby for me, I have to do this in the evening hours and weekends...
:arrow: HuMo-genealogy update? Backup your database! Editing in HuMo-genealogy? Backup your data!
Make multiple backups with: PHPMyAdmin, gedcom export and database export.

HuMo-genealogy software: http://humo-gen.com
Post Reply