diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 05:46:08 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 05:46:08 +1000 |
| commit | 32c999346f3a4919f527df7465e5989afba6e7bc (patch) | |
| tree | 18bf3e4ee87dd0da8bcd18e6243cf1fc07153c30 /post.php | |
| parent | b038e0b244175d07adf5687595ce0b9ebedbe9e2 (diff) | |
Remove $config['url_regex'];
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
