For the safety of yourself and your dog, both cables should be replaced completely by a qualified engineer.
Otherwise, after you've electrocuted yourself, your next of kin will be asking the same question.
Power cables should never be taped up. No appliance should be operated in such a condition.
Cobweb
January 2005