diff options
author | Elan Ruusamäe <glen@delfi.ee> | 2013-11-13 22:40:09 +0200 |
---|---|---|
committer | Elan Ruusamäe <glen@delfi.ee> | 2013-11-13 22:40:09 +0200 |
commit | fe578fe947d692a258e3a5f436b6359ada06c8da (patch) | |
tree | 9e3c5750dd67ec7bf950a5e3748ad48252148d06 /inc/media.php | |
parent | 9296ab00208b22f5c532cee07622ad5c9aeec6ff (diff) | |
download | rpg-fe578fe947d692a258e3a5f436b6359ada06c8da.tar.gz rpg-fe578fe947d692a258e3a5f436b6359ada06c8da.tar.bz2 |
media_isexternal do not capture
do not capture groups in media_isexternal. saves perhaps some cpu cycles and some bytes memory
Diffstat (limited to 'inc/media.php')
-rw-r--r-- | inc/media.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/media.php b/inc/media.php index a9f6be771..f8fb3d496 100644 --- a/inc/media.php +++ b/inc/media.php @@ -90,7 +90,7 @@ function media_metasave($id,$auth,$data){ * @return bool */ function media_isexternal($id){ - if (preg_match('#^(https?|ftp)://#i', $id)) return true; + if (preg_match('#^(?:https?|ftp)://#i', $id)) return true; return false; } |