itty-bitty icon indicating copy to clipboard operation
itty-bitty copied to clipboard

Support optional CRC to detect corrupted URLs

Open MikeRich88 opened this issue 6 years ago • 3 comments

Corrupted URLs seem to hang the browser or load a blank page in my testing.

An optional CRC could be added to the beginning of the hash. (The end would make no sense. I assume that the largest source of corruption would be truncated URLs)

CRC16 would probably be adequate while still being really short.

This would of course provide no authentication, just a detection for a corrupted or truncated URL.

MikeRich88 avatar Jul 06 '18 12:07 MikeRich88

Which browser are you seeing corruption in? Edge? If so truncation should be detected now.

alcor avatar Jul 08 '18 15:07 alcor

No paticular browser, just a hypothetical truncation.

If truncation is detected now then that would take care of the main problem.

MikeRich88 avatar Jul 09 '18 04:07 MikeRich88

I may consider a content length value to detect this.

alcor avatar Jul 11 '18 03:07 alcor