images.changeSettings Captions, 1.2.0 PHP problems

kansaschuckkansaschuck Registered Users Posts: 50 Big grins
I'm using the php 120 imagesChangesettings for caption command below.




https://api.smugmug.com/hack/php/1.2.0/?method=smugmug.images.changeSettings
&SessionID=x&ImageID=116250766&Caption="Verizon crap deleted by PHP."&output=php

command runs ok but the new caption online at smugmug is

\"Verizon
</pre>any pointers for me.

thanks

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited December 25, 2006
    there could be a bug...but you need to look into url encoding.

    But i am pretty sure you're caption should be like this..

    &Caption=Verizon%20crap%20deleted%20by%20PHP%2e

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • kansaschuckkansaschuck Registered Users Posts: 50 Big grins
    edited December 26, 2006
    no bug....
    devbobo wrote:
    there could be a bug...but you need to look into url encoding.

    But i am pretty sure you're caption should be like this..

    &Caption=Verizon%20crap%20deleted%20by%20PHP%2e

    Cheers,

    David

    That did the trick for the spacesthumb.gif. I still have leading ' "\ ' and ending ' "\ ' that I'll assume is the same issue and jump in and learn URL.

    Thanks David.
Sign In or Register to comment.