import-w3c-tests should use re.escape() wherever it's handling file paths
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Oct 2014 17:52:30 +0000 (17:52 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Oct 2014 17:52:30 +0000 (17:52 +0000)
commit52510c0ee6a2456f333431f44f55a748f8004e9a
treea9cb51ee7b6f41729f8d81714b67c5dcba0f8af1
parent829f2858b6f617076a9dd4ab13d01a6f0f0b8d98
import-w3c-tests should use re.escape() wherever it's handling file paths
https://bugs.webkit.org/show_bug.cgi?id=137934

This patch adds re.escape() to a few places where we're doing string
conversions. This prevents errors when attribute values coincidentally
have character sequences that can be interpreted as regular expressions.

Patch by Rebecca Hauck <rhauck@adobe.com> on 2014-10-28
Reviewed by Bem Jones-Bey.

* Scripts/webkitpy/w3c/test_converter.py:
(_W3CTestConverter.convert_attributes_if_needed):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175257 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitpy/w3c/test_converter.py