Issue #80 : handle %t not %d escape

This commit is contained in:
Sean Owen 2014-03-15 08:14:13 -07:00
parent 85417072e1
commit 16ed2542fe

View file

@ -109,8 +109,8 @@ public final class PreferencesFragment
}
// Before validating, remove custom placeholders, which will not
// be considered valid parts of the URL in some locations:
// Blank %d and %s:
valueString = valueString.replaceAll("%[sd]", "");
// Blank %t and %s:
valueString = valueString.replaceAll("%[st]", "");
// Blank %f but not if followed by digit or a-f as it may be a hex sequence
valueString = valueString.replaceAll("%f(?![0-9a-f])", "");
// Require a scheme otherwise: