mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet

Reply
 
Thread Tools
Old 2015-07-25, 08:40   #1
IvanP
 
Apr 2012

23 Posts
Default Invalid URL

In the account settings page, it is stated that the website URL “must begin with "http://" or "https://"”, so it seems that https:// should also work, but by using it, I get an “Invalid URL” message. This would need to be redefined:

Code:
function IsValidURL(urlstring) {
    return MatchesPattern(urlstring.toLowerCase(), 'http:\\/\\/[\\w\\-]+(\\.[\\w\\-]+)+');
}
I just wanted to point that out.

Last fiddled with by IvanP on 2015-07-25 at 08:41
IvanP is offline   Reply With Quote
Old 2015-07-26, 05:46   #2
Madpoo
Serpentine Vermin Jar
 
Madpoo's Avatar
 
Jul 2014

7·11·43 Posts
Default

Quote:
Originally Posted by IvanP View Post
In the account settings page, it is stated that the website URL “must begin with "http://" or "https://"”, so it seems that https:// should also work, but by using it, I get an “Invalid URL” message. This would need to be redefined:

Code:
function IsValidURL(urlstring) {
    return MatchesPattern(urlstring.toLowerCase(), 'http:\\/\\/[\\w\\-]+(\\.[\\w\\-]+)+');
}
I just wanted to point that out.
Oh, thanks... good find, and good troubleshooting. I like it when tech savvy folks not only report an error but take the time to dig a little deeper... it makes life easier.

I don't know if that's a fix for James since it's actually in Javascript (not even sure if that's a 3rd party script or not), but one way or another we'll check into it and hopefully just an easy regex fix.

That's a REALLY old version of the jsFormValidation ... ick. It's kind of abandonware, apparently. I'm probably better off just patching it to use (http|https) in that part of the regex.
Madpoo is offline   Reply With Quote
Old 2015-07-26, 06:01   #3
Madpoo
Serpentine Vermin Jar
 
Madpoo's Avatar
 
Jul 2014

7×11×43 Posts
Default

Quote:
Originally Posted by Madpoo View Post
I'm probably better off just patching it to use (http|https) in that part of the regex.
In fact, I just did that, using (http|https)
Madpoo is offline   Reply With Quote
Old 2015-07-26, 07:41   #4
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Quote:
Originally Posted by Madpoo View Post
In fact, I just did that, using (http|https)
Why not
Code:
https?
?
Dubslow is offline   Reply With Quote
Old 2015-07-26, 17:37   #5
Madpoo
Serpentine Vermin Jar
 
Madpoo's Avatar
 
Jul 2014

331110 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Why not
Code:
https?
?
I guess that would've worked as well. Oh well.
Madpoo is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid certificate? IvanP FactorDB 3 2012-05-11 12:17
Invalid Redirect URL? cheesehead Forum Feedback 5 2011-08-17 23:24
d: Invalid int value/precision '5184000' Unregistered Information & Answers 5 2008-11-06 22:39
Invalid int value/precision 6144 Unregistered Information & Answers 2 2008-11-02 08:09
invalid root junky NFSNET Discussion 0 2004-03-26 02:14

All times are UTC. The time now is 20:31.


Fri Jul 16 20:31:42 UTC 2021 up 49 days, 18:18, 1 user, load averages: 1.80, 1.98, 2.07

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.