Description:
The trip-sharing form allows inconsistent and unrealistic input values for trip details:
Departure Date Input:
Accepts arbitrary numbers such as 243545678988 which is not a valid date format.
This can cause unexpected behaviour or system crashes when processing or displaying date-related data.
Trip Length Field:
Accepts values like 5 hours 1234 mins. The parsing logic does not seem to validate or limit these inputs appropriately.
Steps to Reproduce:
Go to the trip-sharing form.
Enter:
Departure: 243545678988 and time 09:30 PM
Trip length: 5 hours 1234 mins
Save or share the trip.
Expected Behaviour:
Departure date should only accept valid date formats (e.g., DD-MM-YYYY).
Trip length input should validate hours and minutes separately, with reasonable upper limits.


Description:
The trip-sharing form allows inconsistent and unrealistic input values for trip details:
Departure Date Input:
Accepts arbitrary numbers such as 243545678988 which is not a valid date format.
This can cause unexpected behaviour or system crashes when processing or displaying date-related data.
Trip Length Field:
Accepts values like 5 hours 1234 mins. The parsing logic does not seem to validate or limit these inputs appropriately.
Steps to Reproduce:
Go to the trip-sharing form.
Enter:
Departure: 243545678988 and time 09:30 PM
Trip length: 5 hours 1234 mins
Save or share the trip.
Expected Behaviour:
Departure date should only accept valid date formats (e.g., DD-MM-YYYY).
Trip length input should validate hours and minutes separately, with reasonable upper limits.