From 083e7fa94d0c462d41b3b155d4293a497deb4ef2 Mon Sep 17 00:00:00 2001 From: Nolan Caudill Date: Sat, 29 Sep 2012 16:38:48 -0700 Subject: [PATCH] Hack to work around Twitter messages starting with an '@' symbol --- www/flickr_photos_upload_oauth_echo.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/flickr_photos_upload_oauth_echo.php b/www/flickr_photos_upload_oauth_echo.php index 893aad3..58de8d7 100644 --- a/www/flickr_photos_upload_oauth_echo.php +++ b/www/flickr_photos_upload_oauth_echo.php @@ -59,8 +59,11 @@ exit; } + // See that blank space? If a Twitter message starts with an '@' symbol, + // that gets interpreted by curl as a *filepath*. Flickr strips that + // blank space on save so this hack gets around that (nolan-20120929) $args = array( - 'title' => $_POST['message'], + 'title' => ' ' . $_POST['message'], ); $res = flickr_photos_upload($user, $filepath, $args);