summaryrefslogtreecommitdiffstats
path: root/chrome/nsChromeRegistry.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-03-18 02:32:48 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-03-18 02:32:48 +0100
commitea1b2e81e4c092a3b871bed49e907fba20483bdc (patch)
tree06d1f850f36c533c6eb0cf6fe1d106ded14f005b /chrome/nsChromeRegistry.cpp
parent6698bbf1077dfbbbd9f35c95ada1544eb59aa0f1 (diff)
downloadUXP-ea1b2e81e4c092a3b871bed49e907fba20483bdc.tar
UXP-ea1b2e81e4c092a3b871bed49e907fba20483bdc.tar.gz
UXP-ea1b2e81e4c092a3b871bed49e907fba20483bdc.tar.lz
UXP-ea1b2e81e4c092a3b871bed49e907fba20483bdc.tar.xz
UXP-ea1b2e81e4c092a3b871bed49e907fba20483bdc.zip
Revert "Add extra check for path traversal sanity."
This reverts commit 41bd3e2599696771485c9dc75a7e27b94c0597fb.
Diffstat (limited to 'chrome/nsChromeRegistry.cpp')
-rw-r--r--chrome/nsChromeRegistry.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/chrome/nsChromeRegistry.cpp b/chrome/nsChromeRegistry.cpp
index e88aca41f..0aa7f3f14 100644
--- a/chrome/nsChromeRegistry.cpp
+++ b/chrome/nsChromeRegistry.cpp
@@ -238,12 +238,6 @@ nsChromeRegistry::Canonify(nsIURL* aChromeURL)
// path is already unescaped once, but uris can get unescaped twice
const char* pos = path.BeginReading();
const char* end = path.EndReading();
- // Must start with [a-zA-Z0-9].
- if (!('a' <= *pos && *pos <= 'z') &&
- !('A' <= *pos && *pos <= 'Z') &&
- !('0' <= *pos && *pos <= '9')) {
- return NS_ERROR_DOM_BAD_URI;
- }
while (pos < end) {
switch (*pos) {
case ':':