From 9432d80b232568891b7524c502ddb07b27d0bb19 Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Wed, 27 Jun 2018 15:59:34 +0200 Subject: [PATCH] HFP-2075 Don't require protocol for metadata source field --- h5p.classes.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 303e2b5..9c46c87 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -4254,11 +4254,7 @@ class H5PContentValidator { 'type' => 'text', 'label' => $this->h5pF->t('Source'), 'placeholder' => 'https://', - 'optional' => TRUE, - 'regexp' => array( - 'pattern' => '^http[s]?://.+', - 'modifiers' => 'i' - ) + 'optional' => TRUE ) ) ),