fix null pointer dereferenciation v1.2

fixes 'Unkown repository' error message in dav-sync v1.2

fixes missing url encoding in dav_session_get_href() with enabled name decryption

reduces code complexity of util_resource_name()

(0) -300 -100 -30 -10 -4 +4 +10 +30 +100 tip

mercurial