summaryrefslogtreecommitdiff
path: root/program/include/rcube_plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_plugin.php')
-rw-r--r--program/include/rcube_plugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_plugin.php b/program/include/rcube_plugin.php
index 8aa4db64b..365ef2898 100644
--- a/program/include/rcube_plugin.php
+++ b/program/include/rcube_plugin.php
@@ -195,7 +195,7 @@ abstract class rcube_plugin
*/
private function ressource_url($fn)
{
- if ($fn[0] != '/' && !eregi('^https?://', $fn))
+ if ($fn[0] != '/' && !preg_match('|^https?://|i', $fn))
return $this->ID . '/' . $fn;
else
return $fn;