summaryrefslogtreecommitdiff
path: root/app/bin/validator.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2024-07-03 10:19:49 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2024-07-03 10:19:49 +0200
commit8dc8048d2cd4996825470bbfcb1e09e2a2630035 (patch)
tree9804282102f8c40d27407b9c94119b35eeb5013c /app/bin/validator.c
parentc9d0740841fbe0539e42e66d3865672bfcd3ac02 (diff)
parentb6bd52cd7330a90fc0e44dbe6022551a8dd768a1 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'app/bin/validator.c')
-rw-r--r--app/bin/validator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/bin/validator.c b/app/bin/validator.c
index bd481a5..88b41fe 100644
--- a/app/bin/validator.c
+++ b/app/bin/validator.c
@@ -17,7 +17,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "validator.h"
@@ -36,10 +36,10 @@ enum URLSCANSTATE { STATE_SCHEME, STATE_ENDOFSCHEME, STATE_HIER, STATE_PATH, STA
#define MINURLLENGTH 5 /* 2 chars domain name, dot, 2 chars TLD */
bool
-IsValidURL(char *testString)
+IsValidURL(const char *testString)
{
- char *result = testString;
- char *hostname = testString;
+ const char *result = testString;
+ const char *hostname = testString;
enum URLSCANSTATE state = STATE_SCHEME;
if (!*result) {