summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-09-15 05:48:37 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-09-15 05:48:37 +1000
commit4cd23896559dbbcd0bae5746ee458ece36be7a65 (patch)
treebce6ab683c6165b458d643726f1c7fabc908d5de /post.php
parent961e3d3fe0e0abb7be956532091372ce7a00bafa (diff)
lol
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 fc23b47b..1fe3b35f 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('@^https?:@//', $post['file_url']))
+ if (!preg_match('@^https?://@', $post['file_url']))
error($config['error']['invalidimg']);
if (mb_strpos($post['file_url'], '?') !== false)