eShop
eShop copied to clipboard
Exception handling for itemid
the problem is when some one put negative or zero id for itemID, the exception throws and its not handled.
i think for security reasons, input id sanitization is needed.
How this makes this code vulnerable or less secure? Is this case even possible from UI, I tried and unable to replicate.
I think, just you are trying outside the box case to hit directly with invalid data & this code is already in try catch block.