Changeset 11893 in josm for trunk/src/org/openstreetmap/josm/data/validation/routines/UrlValidator.java
- Timestamp:
- 2017-04-13T01:08:58+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/routines/UrlValidator.java
r11889 r11893 373 373 } 374 374 375 if (isOff(ALLOW_ALL_SCHEMES) && !allowedSchemes.contains(scheme.toLowerCase(Locale.ENGLISH))) { 376 return false; 377 } 378 379 return true; 375 return isOn(ALLOW_ALL_SCHEMES) || allowedSchemes.contains(scheme.toLowerCase(Locale.ENGLISH)); 380 376 } 381 377 … … 458 454 } 459 455 460 int slash2Count = countToken("//", path); 461 if (slash2Count > 0 && isOff(ALLOW_2_SLASHES)) { 462 return false; 463 } 464 465 return true; 456 return isOn(ALLOW_2_SLASHES) || countToken("//", path) <= 0; 466 457 } 467 458
Note:
See TracChangeset
for help on using the changeset viewer.