Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

validate_url is now verify_url, fixes and closes #187

git-svn-id: file:///var/svn/trunk/syscp@836 45fdb5c4-e40b-0410-b369-9aab4fe9a275
  • Loading branch information...
commit d5bdd42e202d8a036ae9cb769162cd1ec4d5acd5 1 parent 3e7d9b8
@flol authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 admin_settings.php
View
6 admin_settings.php
@@ -287,7 +287,7 @@
if($_POST['panel_phpmyadmin_url']!=$settings['panel']['phpmyadmin_url'])
{
$value=$_POST['panel_phpmyadmin_url'];
- if(!validate_url($value))
+ if(!verify_url($value) && $value != '')
{
standard_error('phpmyadminiswrong');
exit;
@@ -338,7 +338,7 @@
if($_POST['panel_webmail_url']!=$settings['panel']['webmail_url'])
{
$value=$_POST['panel_webmail_url'];
- if(!validate_url($value))
+ if(!verify_url($value) && $value != '')
{
standard_error('webmailiswrong');
exit;
@@ -389,7 +389,7 @@
if($_POST['panel_webftp_url']!=$settings['panel']['webftp_url'])
{
$value=$_POST['panel_webftp_url'];
- if(!validate_url($value))
+ if(!verify_url($value) && $value != '')
{
standard_error('webftpiswrong');
exit;
Please sign in to comment.
Something went wrong with that request. Please try again.