Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2010-05-07 18:42:09 +0000
committerChris Goldthorpe2010-05-07 18:42:09 +0000
commit057a58f97ff5d88d4b3d61019a7861b58a5bfe8d (patch)
tree0fc66a7c91c30aa6c2375da1bdcdcfc0025fdfa2 /org.eclipse.help
parent838de1bd5ce9ab0a5eb102f3c4ab6ece4a02c133 (diff)
downloadeclipse.platform.ua-057a58f97ff5d88d4b3d61019a7861b58a5bfe8d.tar.gz
eclipse.platform.ua-057a58f97ff5d88d4b3d61019a7861b58a5bfe8d.tar.xz
eclipse.platform.ua-057a58f97ff5d88d4b3d61019a7861b58a5bfe8d.zip
[Bug 311779] [Help] Criteria Scopes are not restored properlyv20100507
Diffstat (limited to 'org.eclipse.help')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/util/URLCoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/util/URLCoder.java b/org.eclipse.help/src/org/eclipse/help/internal/util/URLCoder.java
index 0a2ef05cf..98d4b22fa 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/util/URLCoder.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/util/URLCoder.java
@@ -43,7 +43,7 @@ public class URLCoder {
StringBuffer buf = new StringBuffer(data.length);
for (int i = 0; i < data.length; i++) {
byte nextByte = data[i];
- if (!encodeAllCharacters && isAlphaNumericSlashOrDot(nextByte)) {
+ if (!encodeAllCharacters && isAlphaNumericOrDot(nextByte)) {
buf.append((char)nextByte);
} else {
buf.append('%');
@@ -54,9 +54,9 @@ public class URLCoder {
return buf.toString();
}
- private static boolean isAlphaNumericSlashOrDot(byte b) {
- return (b >= '0' && b <= '9') || (b >= 'a' && b < 'z') || ( b >= 'A' && b <= 'Z')
- || b == '.' || b == '/';
+ private static boolean isAlphaNumericOrDot(byte b) {
+ return (b >= '0' && b <= '9') || (b >= 'a' && b <= 'z') || ( b >= 'A' && b <= 'Z')
+ || b == '.';
}
private static byte[] urlDecode(String encodedURL) {

Back to the top