Issue was caused by change
I34c3fc9d8f9467e83cd201cb099c2d26f3a39b36
Bug: 46627
Change-Id: Ida87efc622e9e90b835473f069559817565eafc1
if( $hash !== false ) {
$base = substr( $base, 0, $hash );
}
+
if( $base[0] == '/' ) {
- if( $base[1] == '/' ) { /* More than one slash will look like it is protocol relative */
+ if( isset( $base[1] ) && $base[1] == '/' ) { /* More than one slash will look like it is protocol relative */
return preg_replace( '!//*!', '/', $base );
}
+
return $base;
} else {
// We may get paths with a host prepended; strip it.