[pmwiki-users] Passing a url as a string do a custome markup and using it

Chris Cox ccox at airmail.net
Tue May 30 01:51:10 CDT 2006


I have a simple function that uses ParseArgs.

I have markup that looks like:

(:pmfeed
feed='http://news.google.com/nwshp?hl=en&ned=us&output=rss&q=linux':)

Now.. .if I hard code the feed value to this URL inside of my php, it
works fine... but somehow I'm not getting the value correctly when
passed in from pmwiki.  Is there some way of protecting it.. or at least
getting the actual value back??

I know this isn't a lot to go on.. but I figure someone may have
already been down this path.

I've tried using a Keep($args['feed'])... but that didn't work either.
I think it's being translated

I've tried doing htmlentities($args['feed'])... I've also
tried htmlspecialchars.

Any hints?

Any attempt to debug by outputting the string in side of <pre>
tags or whatever, show the value I expect... yet it works
hard coded and not when as a parameter... my debugging shows
the same value... I'm lost...




More information about the pmwiki-users mailing list