Relative URLs are no longer recognized as external ones
authorAlexander Ebert <ebert@woltlab.com>
Wed, 16 Jul 2014 20:10:30 +0000 (22:10 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 16 Jul 2014 20:10:30 +0000 (22:10 +0200)
wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php

index d2d024382f7d2efcdfaa49ebc9b75260820aa866..8841677f73020fbda29b95e1e10a36e7f5257f3c 100644 (file)
@@ -158,6 +158,11 @@ class ApplicationHandler extends SingletonFactory {
                        }
                }
                
+               // relative urls contain no protocol, including implied
+               if (!preg_match('~^([a-z]+)?://~', $url)) {
+                       return true;
+               }
+               
                return false;
        }