Browse Source

absolute, untouched domain links now possible, if a '!' is inserted as first character.
[FOO](!/bar)

Florian Trudel 10 years ago
parent
commit
71a9bb6fb5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      system/core/core.php

+ 2 - 0
system/core/core.php

@@ -2040,6 +2040,8 @@ class YellowLookup
 				if(preg_match("/^\#/", $location))
 				if(preg_match("/^\#/", $location))
 				{
 				{
 					$location = $pageBase.$pageLocation.$location;
 					$location = $pageBase.$pageLocation.$location;
+				} else if( preg_match( "/^\!/", $location )) {
+					$location = substr( $location, 1 );
 				} else if(!preg_match("/^\//", $location)) {
 				} else if(!preg_match("/^\//", $location)) {
 					$location = $this->getDirectoryLocation($pageBase.$pageLocation).$location;
 					$location = $this->getDirectoryLocation($pageBase.$pageLocation).$location;
 				} else if(!preg_match("#^$pageBase#", $location)) {
 				} else if(!preg_match("#^$pageBase#", $location)) {