Skip to content

Commit c850efc

Browse files
committed
Refs #91 - tweak the preg_quote() fix
1 parent 7e179d5 commit c850efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WebDriver/Element.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ public function getID()
119119
*/
120120
protected function getElementPath($elementId)
121121
{
122-
return preg_replace(sprintf('/%s$/', preg_quote($this->id)), $elementId, $this->url);
122+
return preg_replace('/' . preg_quote($this->id, '/') . '/', $elementId, $this->url);
123123
}
124124
}

0 commit comments

Comments
 (0)