process_url_move contains hairy code that needs to be refactored into functions and unit-tested.
This is basically done, but I will not close this bug until I have done the unit tests.
I don't have time to write unit tests for this, and presumably the code is working, so resolving the bug.
process_url_move contains hairy code that needs to be refactored into functions and unit-tested.