mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-20 05:29:23 +00:00
authorize string in setURL:forKey:
This commit is contained in:
1 parent
b96abb5fd4
commit
6a2b347b21
1 file changed
+1
-1
@@ -568,7 +568,7 @@ var StandardUserDefaults;
|
||||
*/
|
||||
- (void)setURL:(CPURL)anURL forKey:(CPString)aKey
|
||||
{
|
||||
if ([anURL class] !== CPURL)
|
||||
if ([anURL class] !== CPURL && [anURL class] !== CPString)
|
||||
[CPException raise:CPInvalidArgumentException reason:anURL + @" is not a valid CPURL"];
|
||||
[self setObject:anURL forKey:aKey];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user