Home arrow Bugs
| Back |
Bugs: View Ticket
ExtCal not updating if single quote (') in fields
Submitted: 2006-03-16 06:15:02
Type: Bug
Status: Resolved
Submitted By: The Shadow (shadow42)
Assigned To: Samuel Suter (moensch)
Product: com_mls_events
Category: Backend
Version Reported: 0.1.1
Version Due: 0.1.2
Percent Complete: 100%
Severity: 3
Priority: 3
 
Description

I have been playing around with myLANsite for awhile now and have been having some issues with ExtCal entries sometimes not updating...

Well after some detailed investigation, I found that single quotes (') weren't being escaped propery before insertion into the db.

FIX change admin.mls_events.php line 322? to read:

$extcal
->description = addslashes($cnf_mls_events["extcal_description"]);

The "addslashes" did the trick.

/Andrew

 
Updated: 2006-03-18 18:36:54
UpdatedBy: Samuel Suter (admin)
Comments
Submitted By: Samuel Suter (moensch)
Submitted: Sat, 18. Mar 06 18:40

Had to make this a bit more "sophisticated" :)

$extcal->description = get_magic_quotes_gpc() ? $cnf_mls_events["extcal_description"] : addslashes($cnf_mls_events["extcal_description"]);

If somebody has magic quotes enabled in php.ini (I do :), adding slashes would add one too much. 

 
Write Comment:
 
Audit
Time User Text Field Old Value New Value
Sat, 18. Mar 06 18:36:54 Samuel Suter (admin) Value changed description ... ...
Sat, 18. Mar 06 18:36:54 Samuel Suter (admin) Value changed percentComplete 90 100
Sat, 18. Mar 06 18:36:54 Samuel Suter (admin) Value changed statusid Waiting for new version Resolved
Sat, 18. Mar 06 18:36:54 Samuel Suter (admin) Value changed updated 2006-03-18 17:51:33 2006-03-18 18:36:54
Sat, 18. Mar 06 17:51:33 Samuel Suter (admin) Value changed description ... ...
Sat, 18. Mar 06 17:51:33 Samuel Suter (admin) Value changed updated 2006-03-18 17:30:28 2006-03-18 17:51:33
Sat, 18. Mar 06 17:30:28 Samuel Suter (admin) Value changed percentComplete 0 90
Sat, 18. Mar 06 17:30:28 Samuel Suter (admin) Value changed statusid Under Review Waiting for new version
Sat, 18. Mar 06 17:30:28 Samuel Suter (admin) Value changed updated 2006-03-18 17:23:08 2006-03-18 17:30:28
Sat, 18. Mar 06 17:23:08 Samuel Suter (admin) Value changed updated 2006-03-18 17:22:00 2006-03-18 17:23:08
Sat, 18. Mar 06 17:22:01 Samuel Suter (admin) Value changed description ... ...
Sat, 18. Mar 06 17:22:01 Samuel Suter (admin) Value changed versionDue 0.1.2
Sat, 18. Mar 06 17:22:00 Samuel Suter (admin) Value changed statusid Submitted Under Review
Sat, 18. Mar 06 17:22:00 Samuel Suter (admin) Value changed updatedBy Samuel Suter (admin)
Sat, 18. Mar 06 17:22:00 Samuel Suter (admin) Value changed updated 2006-03-16 06:15:02 2006-03-18 17:22:00
 
JoomBugs Bug Tracker for Joomla 0.1.0 (com_joombugs)
© 2006 Samuel Suter <samuel.suter@mylansite.org>
This is Free Software released under the GNU/GPL License.
© 2008 myLANsite - Lanparty components for Joomla
Joomla! is Free Software released under the GNU/GPL License.