Revision: 7593
http://sourceforge.net/p/web-erp/reponame/7593
Author: exsonqu
Date: 2016-08-18 07:09:07 +0000 (Thu, 18 Aug 2016)
Log Message:
-----------
18/08/16 Exson: Add date format validation in PcClaimExpensesFromTab.php.
Modified Paths:
--------------
trunk/PcClaimExpensesFromTab.php
Modified: trunk/PcClaimExpensesFromTab.php
===================================================================
--- trunk/PcClaimExpensesFromTab.php 2016-08-17 13:22:42 UTC (rev 7592)
+++ trunk/PcClaimExpensesFromTab.php 2016-08-18 07:09:07 UTC (rev 7593)
@@ -69,6 +69,10 @@
$InputError = 1;
prnMsg( _('The amount must be greater than 0'),'error');
}
+ if (!is_date($_POST['Date'])) {
+ $InputError = 1;
+ prnMsg(_('The date input is not a right format'),'error');
+ }
if (isset($SelectedIndex) AND $InputError !=1) {
$sql = "UPDATE pcashdetails
@@ -430,4 +434,4 @@
}
include('includes/footer.inc');
-?>
\ No newline at end of file
+?>
|