koltyakov / gosip

⚡️ SharePoint SDK for Go
https://go.spflow.com
MIT License
145 stars 33 forks source link

Handle relativeURI recursives to empty string in checkGetRelativeURL #71

Closed bangbaew closed 9 months ago

bangbaew commented 9 months ago

When the site url does not have .com in hostname, the string relativeURI somehow becomes an empty string and the program panics at checkGetRelativeURL because []rune(relativeURI)[0] is null, so I tried to handle empty relativeURI