Revision 5761
Added by berkley almost 14 years ago
src/edu/ucsb/nceas/metacat/restservice/D1HttpRequest.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
package edu.ucsb.nceas.metacat.restservice; |
25 | 25 |
|
26 |
import java.io.UnsupportedEncodingException; |
|
27 |
import java.net.URLDecoder; |
|
26 | 28 |
import java.util.Enumeration; |
27 | 29 |
import java.util.Map; |
28 | 30 |
import java.util.StringTokenizer; |
... | ... | |
89 | 91 |
String s = super.getPathInfo(); |
90 | 92 |
System.out.println("original pathInfo: " + s); |
91 | 93 |
s = this.lastPathElement; |
94 |
try |
|
95 |
{ |
|
96 |
s = URLDecoder.decode(s, "UTF-8"); |
|
97 |
} |
|
98 |
catch (UnsupportedEncodingException e) |
|
99 |
{ |
|
100 |
s = URLDecoder.decode(s); |
|
101 |
} |
|
92 | 102 |
System.out.println("new pathinfo: " + s); |
93 | 103 |
return s; |
94 | 104 |
} |
Also available in: Unified diff
added url decoding to the filter