You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be an issue when the script is used with regex and escaped URL together which results in incorrect S&R being applied across the database
To replicate the issue create a post in WordPress with the following text.
Hi,
There seems to be an issue when the script is used with regex and escaped URL together which results in incorrect S&R being applied across the database
To replicate the issue create a post in WordPress with the following text.
Now execute Search and Replace via CLI or UI, it doesn't matter.. the results are same but here is the CLI command.
php srdb.cli.php -h localhost -u 'mysql_user' -p '$mysql_password' -n '$db_name' -g -s '/(?<!@)domain\.com/' -r 'newdomain.com'
After running the above command the incorrect text results I got is shared below:
However, my expected result was:
The script should S&R according to this pattern, but instead, it seems to be following this one it's like the escaped URL was ignored
@gianluigi-icit I would appreciate it if you can take a look at this.
The text was updated successfully, but these errors were encountered: