Fix a couple of issues with cleanupInvalidDbKeys.php maint script
authorTTO <at.light@live.com.au>
Fri, 5 May 2017 01:37:55 +0000 (01:37 +0000)
committerTTO <at.light@live.com.au>
Sat, 6 May 2017 11:45:46 +0000 (11:45 +0000)
commitaf627ad2ccde69b370b79cf497448c06bf575803
tree88bd22e0ba7fc1670cc5f3962a5798a85561d98a
parent8bc99a87a2d4d64ea7c21a0a9c703862e9caaecb
Fix a couple of issues with cleanupInvalidDbKeys.php maint script

- The output was pretty screwed. Now it works properly if you redirect
  STDOUT to a file like you're supposed to.
- \r, \n, and \t characters were escaped wrongly (for example, \r was
  escaped to \\r, which matches a literal sequence of '\' and 'r'). Now
  they are correctly escaped to \r, \n and \t in the SQL query.

Change-Id: I750b4fb3e7072ae3cdd8c40733b066a1e76de366
maintenance/cleanupInvalidDbKeys.php