@mrkovacs that connector does look a little rough :-) I am frugal and would just use a thin strip of non-conductive tape to hold the connector in place. I would even consider a dap of glue from a hot glue gun on either end of the connector. Either one of those is easily removed if need should be. Of course, the proper repair would be to replace the cable :-)
Happy Repair Day to you as well. Remember : ***Repair is War on Entropy!***