Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebDriver_Driver potentially fails when parsing out session id #26

Open
skeptic35 opened this issue Oct 8, 2012 · 0 comments
Open

WebDriver_Driver potentially fails when parsing out session id #26

skeptic35 opened this issue Oct 8, 2012 · 0 comments

Comments

@skeptic35
Copy link

The constructor of the WebDriver_Driver class uses the following preg_match to parse out the seesion id:
preg_match("/\nLocation:./(.)\n/", $response['header'], $matches)
This fails whenever the Location header is the last header sent and thus is not followed by a "\n".
A simple fix would be to change the line to
preg_match("/\nLocation:./(.)\n/", $response['header']."\n", $matches)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant