On Monday, 26 August 2013 at 12:20 AM, Rouslan Placella wrote:
On 08/25/2013 10:14 AM, Ayush Chaudhary wrote:Hi,I was writing Selenium tests for editing an event. While creating anevent, I created it with the clause 'EVERY 2 MINUTE_SECOND' and itworked fine. However, MySQL stores it as '0:2', so when I go to edit theevent, the default value for interval field is '0:2', and then when Isubmit the edit form, our code takes the intval from 0:2 and forms thequery 'EVERY 0 MINUTE_SECOND' and this creates an error.Is there a specific reason why intval is being used inrte_events.lib.php on Line 585? If not, should I remove that and issue apull request?IIRC, intval was used there to sanitize user input. If you remove it,you'll need to add something else to avoid sql injections.
Bye,Rouslan------------------------------------------------------------------------------Introducing Performance Central, a new site from SourceForge andAppDynamics. Performance Central is your source for news, insights,analysis and resources for efficient Application Performance Management.Visit us today!_______________________________________________Phpmyadmin-devel mailing list