Project

Profile

Help

Revision f4c4f2d3

Added by Michael Kay almost 12 years ago

Fix bug 2940977 resolve-uri('', 'uri#fragment') incorrect

View differences:

.gitignore
1 1
latest8.9/bj/Saxon8.9.0.x.iml
2
latest9.2/build/libs
3
latest9.2/build/temp
latest9.2/hej/net/sf/saxon/functions/ResolveURI.java
181 181
                } catch (URISyntaxException e) {
182 182
                    throw new URISyntaxException(base, "Invalid base URI: " + e.getMessage());
183 183
                }
184
                if (baseURI.getFragment() != null) {
185
                    int hash = base.indexOf('#');
186
                    if (hash >= 0) {
187
                        base = base.substring(0, hash);
188
                    }
189
                    try {
190
                        baseURI = new URI(base);
191
                    } catch (URISyntaxException e) {
192
                        throw new URISyntaxException(base, "Invalid base URI: " + e.getMessage());
193
                    }
194
                }
184 195
                try {
185 196
                    new URI(relativeURI);   // for validation only
186 197
                } catch (URISyntaxException e) {

Also available in: Unified diff