Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Aug 2012, 09:53
luxinterior's Avatar
luxinterior luxinterior is offline
 
Join Date: Mar 2005
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...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and here's the properly formatted parameters I need to pass...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Any help or advice on this issue would be greatly appreciated.

Thanks

Lux
Reply With Quote
  #2  
Old 23 Aug 2012, 13:08
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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.
Reply With Quote
  #3  
Old 23 Aug 2012, 15:29
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Disable all custom plugins just in case it is one of them u need to rule it out
Reply With Quote
  #4  
Old 24 Aug 2012, 01:19
luxinterior's Avatar
luxinterior luxinterior is offline
 
Join Date: Mar 2005
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
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Binary scrambled Posts Andreas vBulletin 3.5 Add-ons 56 06 Aug 2006 01:48



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 13:12.

Layout Options | Width: Wide Color: