Open JE4GLE opened 5 years ago
This PR contains an error - it is using urlencode()
inside of urlencode()
meaning that the title is being escaped twice.
The problem it attempts to fix is valid and the solution seems reasonable aside from the above (though I would avoid inline short-form if statements in complex expressions and split it out into a normal if() condition to update $name
before the string is built, to make the code more readable).
Note that PR #80 contains an alternative solution to the same problem, though it also suffers from the double-escaping issue.
The QR-Code requires the title to be in front of the name seperated by ':' to be displayed in apps like Authy