summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-09-15 05:46:08 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-09-15 05:46:08 +1000
commit32c999346f3a4919f527df7465e5989afba6e7bc (patch)
tree18bf3e4ee87dd0da8bcd18e6243cf1fc07153c30 /post.php
parentb038e0b244175d07adf5687595ce0b9ebedbe9e2 (diff)
Remove $config['url_regex'];
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index 2a5f65c6..fc23b47b 100644
--- a/post.php
+++ b/post.php
@@ -273,7 +273,7 @@ if (isset($_POST['delete'])) {
if ($config['allow_upload_by_url'] && isset($_POST['file_url']) && !empty($_POST['file_url'])) {
$post['file_url'] = $_POST['file_url'];
- if (!preg_match($config['url_regex'], $post['file_url']))
+ if (!preg_match('@^https?:@//', $post['file_url']))
error($config['error']['invalidimg']);
if (mb_strpos($post['file_url'], '?') !== false)