![]() |
Solution needed for : Database error due to bad parsing of variables
Some sites that have linked to certain pages I have on my site are wrongly parsing the & symbol in the url , instead giving such a link like :
PHP Code:
PHP Code:
Is there anything , on my end , that I can do to rectify this problem ? Help most appreciated :) |
Look for the function htmlspecialchars() in the code. This translates symbols like & into their special char equivalent.
To revert, use html_entity_decode() |
vBulletin also has its own function to revert: unhtmlspecialchars() (see includes/functions.php) and also a unicode safe version of htmlspecialchars: htmlspecialchars_uni()
|
Thanks guys, but what puzzles me is that those links are placed in the templates.
ie. PHP Code:
|
All times are GMT. The time now is 01:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|