@@ -12,7 +12,6 @@ def test_rejected_urls
12
12
[ nil , "" , "foo" , "http:/" , "http:://" , "http://" ,
13
13
"sourceforge.net/svn/project/trunk" , # missing a protocol prefix
14
14
"http://robin@svn.sourceforge.net/" , # must not include a username with the url
15
- "http://svn.sourceforge.net/asdf/asdf/ malicious code" , # no spaces allowed
16
15
"/home/robin/cvs" , # local file paths not allowed
17
16
"git://kernel.org/whatever/linux.git" , # git protocol is not allowed
18
17
":pserver:anonymous:@juicereceiver.cvs.sourceforge.net:/cvsroot/juicereceiver" , # pserver is just wrong
@@ -38,7 +37,8 @@ def test_accepted_urls
38
37
"http://svn.gnome.org/svn/gtk+/trunk" , # + character OK
39
38
"http://svn.gnome.org" , # no path, no trailing /, just a domain name is OK
40
39
"http://brlcad.svn.sourceforge.net/svnroot/brlcad/rt^3/trunk" , # a caret ^ is allowed
41
- "http://www.thus.ch/~patrick/svn/pvalsecc" # ~ is allowed
40
+ "http://www.thus.ch/~patrick/svn/pvalsecc" , # ~ is allowed
41
+ "http://franklinmath.googlecode.com/svn/trunk/Franklin Math" , # space is allowed in path
42
42
] . each do |url |
43
43
# Accepted for both internal and public use
44
44
[ true , false ] . each do |p |
0 commit comments