Refactored scribe 1.1.0 to handdle properly encodings as per RFC5849. This is the first try for comment.
This commit is contained in:
1 parent
70358ad651
commit
ca0076c043
9 files changed
+86
-32
No files matched your search
@@ -1,7 +1,5 @@
|
||||
package org.scribe.model;
|
||||
|
||||
import org.scribe.utils.*;
|
||||
|
||||
/**
|
||||
* Represents an OAuth verifier code.
|
||||
*
|
||||
@@ -19,7 +17,10 @@ public class Verifier
|
||||
*/
|
||||
public Verifier(String value)
|
||||
{
|
||||
this.value = URLUtils.percentDecode(value);
|
||||
if (value == null) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue()
|
||||
|
||||
Reference in new issue
Block a user