Google Latitude tracking - don't enforce hyphen

9 views
Skip to first unread message

Mateusz Morawski

unread,
Aug 23, 2010, 10:33:49 AM8/23/10
to Open Source CAD - Dev

The badge id can either contain hyphen prefix or not. When badge id
doesn't contain hyphen it works only without it. I tested it manually
by sending get request over HTTP. Therefore you should not enforce
hyphen within logic of tickets application.

I discovered 2 places where google latitude logic is used:

1. latitude.php, funcion do_galt($user);
2. functions.inc.php, function do_glat();

In the first case the $user value is taken straight from the input
textbox and is not transformed while in the second case the hyphen
prefix is enforced:

$hyphen = (substr ($row['callsign'] , 0 , 1)=="-")? "" : "-"; //
force 12/13/09

The basic fix is to set $hyphen variable to ""

--
Regard,
Mateusz Morawski
Message has been deleted

Arnie Shore

unread,
Aug 23, 2010, 10:47:14 AM8/23/10
to open-sourc...@googlegroups.com
Agreed with, mostly.  The hyphen logic has been removed altogether from both functions in the version under test.  Thanks, AS


--
You received this message because you are subscribed to the Google Groups "Open Source CAD - Dev" group.
To post to this group, send email to open-sourc...@googlegroups.com.
To unsubscribe from this group, send email to open-source-cad-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/open-source-cad---dev?hl=en.


Reply all
Reply to author
Forward
0 new messages