Skip to content

Commit

Permalink
Merge pull request #14 from jimvernon/patch-1
Browse files Browse the repository at this point in the history
Fix finding GALX token
  • Loading branch information
aaronpk committed Nov 21, 2013
2 parents eebd5fb + 2850431 commit 6b5cc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GoogleVoice.php
Expand Up @@ -40,7 +40,7 @@ private function _logIn() {
$html = curl_exec($this->_ch);

// Parse the returned webpage for the "GALX" token, needed for POST requests.
if(preg_match('/name="GALX"\s*value="([^"]+)"/', $html, $match))
if (preg_match('/name="GALX"\s*type="hidden"\s*value="([^"]+)"/', $html, $match))
$GALX = $match[1];
else
throw new Exception('Could not parse for GALX token');
Expand Down

0 comments on commit 6b5cc60

Please sign in to comment.