aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-06-29 13:00:54 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-06-29 13:00:54 +0000
commit6f37638caee649060dc9f933af6773652a813035 (patch)
tree897c7056941c2fc3452bd46053ee56115a6a82fc /phpBB/download.php
parent1c22e7a40728fde76b9b9e5afd168f8eb0313268 (diff)
downloadforums-6f37638caee649060dc9f933af6773652a813035.tar
forums-6f37638caee649060dc9f933af6773652a813035.tar.gz
forums-6f37638caee649060dc9f933af6773652a813035.tar.bz2
forums-6f37638caee649060dc9f933af6773652a813035.tar.xz
forums-6f37638caee649060dc9f933af6773652a813035.zip
- fixing some very very nasty opera bugs by changing the clearing method we use.
- also properly apply preg_quote to some strings. git-svn-id: file:///svn/phpbb/trunk@7808 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/download.php')
-rw-r--r--phpBB/download.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/download.php b/phpBB/download.php
index c24ea81425..382c528db9 100644
--- a/phpBB/download.php
+++ b/phpBB/download.php
@@ -544,7 +544,7 @@ function download_allowed()
{
foreach ($iplist as $ip)
{
- if (preg_match('#^' . str_replace('*', '.*?', preg_quote($site_ip, '#')) . '$#i', $ip))
+ if (preg_match('#^' . str_replace('\*', '.*?', preg_quote($site_ip, '#')) . '$#i', $ip))
{
if ($row['ip_exclude'])
{
@@ -561,7 +561,7 @@ function download_allowed()
if ($site_hostname)
{
- if (preg_match('#^' . str_replace('*', '.*?', preg_quote($site_hostname, '#')) . '$#i', $hostname))
+ if (preg_match('#^' . str_replace('\*', '.*?', preg_quote($site_hostname, '#')) . '$#i', $hostname))
{
if ($row['ip_exclude'])
{