Bug - Fixed Drac & Tan does not have HTML character entity in item name

Idran

Member
I noticed some weird results in my login script that I finally tracked down. Winnowing things down to where my error was, the following code:
Code:
contains_text(visit_url("showconsumption.php"), to_string($item[drac & tan]))
always returns false whether or not you've actually consumed a Drac & Tan. I finally realized why after a bit, it's because to_string returns the name as "Drac & Tan". This:
Code:
contains_text(visit_url("showconsumption.php"), "Drac & Tan")
works properly, while this:
Code:
contains_text(visit_url("showconsumption.php"), "Drac & Tan")
does not.
 

Veracity

Developer
Staff member
So you are telling me that showconsumption.php has bogus HTML in it for the "Drac & Tan"?

Edit: Ah. No, it appears that the name of a Drac & Tan doesn't have the character entity in it. How odd.

Edit 2: I corrected the title of this bug report to reflect the real issue.
 
Last edited:
Top