Fix infinite loop using postgres as backend
unescapebin is handed a string in some cases, and it causes an infinite loop when it does. This ensures that the argument is a resource before loading its contents.
You don't pay for Framagit, because it is funded by donations to Framasoft. Our not-for-profit needs any support you can afford: support.framasoft.org.
Framagit est gratuit car il est financé par les dons à Framasoft. Notre association a besoin de votre soutien sur soutenir.framasoft.org.
unescapebin is handed a string in some cases, and it causes an infinite loop when it does. This ensures that the argument is a resource before loading its contents.