Hi
I've created a 'product' that will replace a bbcode tag with embed code for jwplayer with a signed url for cloudfront. It all works well and I've tested the code outside of vb with no problem but because the signature has special characters they're getting screwed up with vb's eval() call.
Here's the screwed up one after it is returned by vb...
Code:
Passes when NOT using urlencode()
mp4:?Expires=1345707704&Signature=P~Q8WlEldNLgmdd4MKEewqUgzuwm348rBYLh6WKbneoaTjttlDb~vJ-nVA4e-DaaiHV7jClxrflm9hZW8-4X7RXoA4o0JNiomat0~EJaBKMGwV78F1Bhmk-Favl2ts7AODJh8YYKLR-Sb0d7zQNKk3NOzc3DN~CTitym1AJ0UTE_&Key-Pair-Id=APKAIVFJN2SOT46N2RUA
and here's the properly formatted parameters I need to pass...
Code:
Fails when using urlencode()
mp4%3FExpires%3D1345708196%26Signature%3DLUPmcO5n4dxh4RUTY3fyvmV07rz%7E5bRyBlR0egzftd-OX9zfohy7mXmdlLSid1OGq580XXXz3ufMyeE-K%7EPULow7YakP%7Egd1VU3k3flT%7E8%7EAkLZcZDU1z4EBAV1TCOWOI4421wPjlVVF6Cc1k4b8vGXmKfFPxJKOaWzB%7EL7Esog_%26Key-Pair-Id%3DAPKAIVFJN2SOT46N2RUA
Any help or advice on this issue would be greatly appreciated.
Thanks
Lux