summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorElan Ruusamäe <glen@delfi.ee>2013-11-13 22:40:09 +0200
committerElan Ruusamäe <glen@delfi.ee>2013-11-13 22:40:09 +0200
commitfe578fe947d692a258e3a5f436b6359ada06c8da (patch)
tree9e3c5750dd67ec7bf950a5e3748ad48252148d06 /inc
parent9296ab00208b22f5c532cee07622ad5c9aeec6ff (diff)
downloadrpg-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')
-rw-r--r--inc/media.php2
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;
}