![]() |
Cloudfront signed urls getting scrambled by eval()
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() Code:
Fails when using urlencode() Thanks Lux |
Why do you think it's eval() that's causing the problem? Is that in a template? I think we'd have to see more of what you're doing to figure out what's wrong.
|
Disable all custom plugins just in case it is one of them u need to rule it out
|
Thanks for the responses guys.
I figured it out in the end and it was so simple it's kind of embarrassing :) Since the return value was basically a formatted string I simply enclosed it in double quotes and it worked fine. No more processing it like php and it displays as a string. Hopefully that will save somebody else having the same issues. Lux |
All times are GMT. The time now is 08:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|