[TASK] Use strpos instead of substr to check the start of a string
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / Classes / RteHtmlAreaApi.php
index 5183799..725a56d 100644 (file)
@@ -280,7 +280,7 @@ abstract class RteHtmlAreaApi
      */
     protected function getFullFileName($filename)
     {
-        if (substr($filename, 0, 4) === 'EXT:') {
+        if (strpos($filename, 'EXT:') === 0) {
             // extension
             list($extKey, $local) = explode('/', substr($filename, 4), 2);
             $newFilename = '';