koltyakov / gosip

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

Handle relativeURI recursives to empty string in checkGetRelativeURL #71

Closed bangbaew closed 7 months ago

bangbaew commented 7 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