1
0
Fork 0
forked from blallo/rss-bridge

Fix duplicate https://www.facebook.com/ on captcha_action POST URL (#466)

This commit is contained in:
Pellaeon Lin 2017-02-03 00:18:23 +08:00 committed by Teromene
parent 49cc0661ad
commit 1028e538ab

View file

@ -124,7 +124,7 @@ class FacebookBridge extends BridgeAbstract{
foreach ($captcha->find('input, button') as $input) foreach ($captcha->find('input, button') as $input)
$captcha_fields[$input->name] = $input->value; $captcha_fields[$input->name] = $input->value;
$_SESSION['captcha_fields'] = $captcha_fields; $_SESSION['captcha_fields'] = $captcha_fields;
$_SESSION['captcha_action'] = self::URI.$captcha->find('form', 0)->action; $_SESSION['captcha_action'] = $captcha->find('form', 0)->action;
//Show captcha filling form to the viewer, proxying the captcha image //Show captcha filling form to the viewer, proxying the captcha image
$img = base64_encode(getContents($captcha->find('img', 0)->src)); $img = base64_encode(getContents($captcha->find('img', 0)->src));