OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5dbbde
)
Do not include the fragement identifier in the path.
author
Patrick Scott
<phanna@android.com>
Tue, 16 Feb 2010 21:15:55 +0000
(16:15 -0500)
committer
Patrick Scott
<phanna@android.com>
Tue, 16 Feb 2010 22:09:03 +0000
(17:09 -0500)
Bug:
2435741
core/java/android/net/WebAddress.java
patch
|
blob
|
history
diff --git
a/core/java/android/net/WebAddress.java
b/core/java/android/net/WebAddress.java
index
2d078c1
..
fa13894
100644
(file)
--- a/
core/java/android/net/WebAddress.java
+++ b/
core/java/android/net/WebAddress.java
@@
-58,7
+58,8
@@
public class WebAddress {
/* authority */ "(?:([-A-Za-z0-9$_.+!*'(),;?&=]+(?:\\:[-A-Za-z0-9$_.+!*'(),;?&=]+)?)@)?" +
/* host */ "([-" + GOOD_IRI_CHAR + "%_]+(?:\\.[-" + GOOD_IRI_CHAR + "%_]+)*|\\[[0-9a-fA-F:\\.]+\\])?" +
/* port */ "(?:\\:([0-9]+))?" +
- /* path */ "(\\/?.*)?");
+ /* path */ "(\\/?[^#]*)?" +
+ /* anchor */ ".*");
/** parses given uriString. */
public WebAddress(String address) throws ParseException {