We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1707cfa commit 1b36419Copy full SHA for 1b36419
Plugins/Postimage.php
@@ -3,7 +3,7 @@
3
* Plugin for http://postimage.org
4
*
5
* @release Jun 19, 2014
6
- * @lastupdate Mar 207, 2015
+ * @lastupdate Mar 7, 2015
7
*/
8
class ChipVN_ImageUploader_Plugins_Postimage extends ChipVN_ImageUploader_Plugins_Abstract
9
{
@@ -178,6 +178,8 @@ private function getImageFromResult($url)
178
&& $url = $this->getMatch('#id="code_1".*?>(http.*?)<#i', $this->client)
179
) {
180
// try to fetch direct link from image page
181
+ // tell postimage that i'm other browser
182
+ // don't hide result with me, lol :v
183
$this->resetHttpClient()
184
->setUserAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36')
185
->execute($url);
0 commit comments