BUG-14886 PMFPauseCase cannot pass time ('Y-m-d H:i:s') SOLVED
- Strict validation only for date. - Add validation with time in file class.wsBase.php in function pauseCase
This commit is contained in:
@@ -3089,7 +3089,7 @@ class wsBase
|
||||
}
|
||||
|
||||
if (! empty( $unpauseDate )) {
|
||||
if (! preg_match( "/^\d{4}-\d{2}-\d{2}$/", $unpauseDate )) {
|
||||
if (! preg_match( "/^\d{4}-\d{2}-\d{2}| \d{2}:\d{2}:\d{2}$/", $unpauseDate )) {
|
||||
$result = new wsResponse( 100, G::LoadTranslation( "ID_INVALID_DATA" ) . " $unpauseDate" );
|
||||
|
||||
$g->sessionVarRestore();
|
||||
|
||||
Reference in New Issue
Block a user