Merge pull request #7730 from annando/tabs
Strings.php: Spaces are transformed to Tabs
This commit is contained in:
commit
e176f010ec
|
@ -332,7 +332,6 @@ class Strings
|
||||||
return (strcasecmp(self::normaliseLink($a), self::normaliseLink($b)) === 0);
|
return (strcasecmp(self::normaliseLink($a), self::normaliseLink($b)) === 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensures the provided URI has its query string punctuation in order.
|
* Ensures the provided URI has its query string punctuation in order.
|
||||||
*
|
*
|
||||||
|
@ -348,7 +347,6 @@ class Strings
|
||||||
return $uri;
|
return $uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the trimmed provided string is starting with one of the provided characters
|
* Check if the trimmed provided string is starting with one of the provided characters
|
||||||
*
|
*
|
||||||
|
|
|
@ -78,7 +78,7 @@ class StringsTest extends TestCase
|
||||||
|
|
||||||
$this->assertEquals('[submit type="button" onclick="alert(\'failed!\');" /]', $validstring);
|
$this->assertEquals('[submit type="button" onclick="alert(\'failed!\');" /]', $validstring);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'<submit type="button" onclick="alert('failed!');" />',
|
"<submit type="button" onclick="alert('failed!');" />",
|
||||||
$escapedString
|
$escapedString
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user