View Full Version : [url] tag messed up.....
Link14716
06-26-2002, 05:25 PM
Ok, my [url] tag is screwed up. Whenever someone uses it, the link ends up being something like this:
file:///C|/WINDOWS/Desktop/%5C%22http://www.vggmn.com%5C%22
I even remade the tags and it still doesn't work. Any ideas? (If I post links with HTML it works, so it MUST be the tag!)
scsa20
06-26-2002, 06:32 PM
you'll have to edit a php file to fix that problem
Link14716
06-26-2002, 06:34 PM
I kind of figured that, but which file? and how?
Xenon
06-26-2002, 07:28 PM
it should be the file functions.php
find function bbcodeparse2, thats where the bbcode(like the [url]-tag is parsed.
replace your messed code with the code of the original functions.php
Link14716
06-26-2002, 08:28 PM
Damnit.....
"function bbcodeparse2" only appears once, and that isn't the problem (if it is, then the original functions.php file that I have has the same problem), and just searching for "bbcodeparse2" doesn't help either.....
EDIT: Ok, I know what you mean, but it STILL didn't fix the problem....... DAMN!!!
XtremeVigilante
06-27-2002, 07:44 PM
Any ideas? It isn't just when people use the [url] tag. it also occures when people just type in a normal link. But if they use html the link is fine.
scsa20
06-27-2002, 08:47 PM
in admin/functions.php, search for:
$righturl =
and make sure it's
$righturl = "http://$righturl";
that's the only place I think it should be.
Link14716
06-27-2002, 09:36 PM
well, here is the whole fuction thingy with that in it:
function checkurl($url, $hyperlink="") {
$righturl = $url;
if(!preg_match("![a-z]://!si", $url)) {
$righturl = "http://$righturl";
}
// remove threat of users including javascript in url
/*$righturl = preg_replace("/javascript:/si", "java script:", $righturl);
$righturl = preg_replace("/about:/si", "about :", $righturl);*/
$hyperlink = iif(trim($hyperlink)=="" or $hyperlink==$url, iif(strlen($url)>55,substr($url,0,35)."...".substr($url,-15),$url) ,$hyperlink);
return "<a href=file:///C|/WINDOWS/Desktop/%5C%22$righturl%5C%22 target=\"_blank\">".str_replace('\"', '"', $hyperlink)."</a>";
}
Can ANYONE try to tell me if anything's wrong? If I can't fix it, I am just going to delete the whole thing from functions.php and remake them......
scsa20
06-27-2002, 11:09 PM
I see your problem, see that one part
return "<a href=file:///C|/WINDOWS/Desktop/%5C%22$righturl%5C%22 target=\"_blank\">".str_replace('\"', '"', $hyperlink)."</a>";
that's the problem, change that to:
return "<a href=\"$righturl\" target=\"_blank\">".str_replace('\"', '"', $hyperlink)."</a>";
Link14716
06-27-2002, 11:16 PM
How in the hell.........
Thanks for the responce, can't stand not seeing it, lol.
/me wonders how the f*ck that got messed up like that.
Now that I think about it, it was probably one of those damned hackers. Damn they piss me off.
scsa20
06-27-2002, 11:22 PM
lol, which hack do you think would do that?? I dought any hacks from here would do that
Link14716
06-27-2002, 11:28 PM
Not Hacks, HACKERS. You know, the bastards that are trying to ++++ my board up? Yea, they are going after my friend and co-owner because they are retarded +++++++s.
scsa20
06-27-2002, 11:34 PM
hahaha, if your board been updated to the latest version I dought they could do it again. not unless someone you know knows the FTP info for you site and gived it out.
Link14716
06-27-2002, 11:37 PM
It is updated to 2.2.6. I've had hackers hack themselves into the admin panel and ban one of my admins. I've taken them out so far with .htaccess, but they probably got into my FTP.....
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.