EZP-27092: Remove eZAutoLink operator usage of preg_replace and PREG_REPLACE_EVAL #1286
Remove eZAutoLink operator usage of preg_replace usage of "\e" (PREG_REPLACE_EVAL) to properly support php 5.5+ and php 7.0+
Since PHP 5.5.x the usage of preg_replace() function no longer supports "\e" (PREG_REPLACE_EVAL) and preg_replace_callback() should be used instead. IE: Deprecation of feature usage.
Since PHP 7.x the usage of preg_replace() function no longer supports "\e" (PREG_REPLACE_EVAL) and preg_replace_callback() must be used instead. IE: Removal of feature usage.
Source #1, Deprecated features in PHP 5.5.x: http://php.net/manual/en/migration55.deprecated.php
Source #2, Changed functions in PHP 7.x: http://php.net/manual/en/migration70.changed-functions.php
Our pull request will address these problems by refactoring the affected code and add phpunit tests to ensure the results remain the same through these code changes.
* master: (40 commits) A quick hack to support html entities in RSS imported item descriptions. Fix EZP-27321: Update TinyMCE to 3.5.12 and patch for "Uncaught DOMEx… (ezsystems#1297) EZP-27011: Solr index not updated when changing a content priority (ezsystems#1283) EZP-15983 - Only include ezp_override when present (ezsystems#1270) Add state change/assign to the audit log (ezsystems#1285) EZP-27092: Remove eZAutoLink operator usage of preg_replace and PREG_REPLACE_EVAL (ezsystems#1286) Fix EZP-26911: Embedded PDF files are downloadable though they are in trash EZP-27000: Remove uploader.swf from all repos/branches Fix EZP-26659: The package component is vulnerable to arbitrary file upload Fix EZP-26405: SQL Injection in Search Component (ezsearchengine) Setting to have different cache based on the request protocol Fix EZP-26832: Enabling editor causes error on links with "&" (ezsystems#1278) Making sure all affected PHP versions are handled Fix EZP-26798: Query parameters get lost when being redirected with mobile device detect filter Fix EZP-26405: SQL Injection in Search Component (ezsearchengine) (ezsystems#105) Fix EZP-26449: Wrong version translation list in eZContentOperationCollection Fix EZP-26427: ezoe popup search string not urlencoded Fix EZP-26354: Autolink fails if you try to link content in your own site (ezsystems#1263) Fix EZP-25031: eZContentUpload is not providing original file name to custom UploadHandler (ezsystems#1228) Fix EZP-26276: Exclamation mark followed by non-chars at end of URL does not work in emails (ezsystems#1260) ...