vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [url] tag messed up..... (https://vborg.vbsupport.ru/showthread.php?t=40312)

Link14716 06-26-2002 04:25 PM

[url] tag messed up.....
 
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 05:32 PM

you'll have to edit a php file to fix that problem

Link14716 06-26-2002 05:34 PM

I kind of figured that, but which file? and how?

Xenon 06-26-2002 06: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 07: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 06: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 07:47 PM

in admin/functions.php, search for:

PHP Code:

$righturl 

and make sure it's

PHP Code:

$righturl "http://$righturl"

that's the only place I think it should be.

Link14716 06-27-2002 08:36 PM

well, here is the whole fuction thingy with that in it:
Code:

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 10:09 PM

I see your problem, see that one part

PHP Code:

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:

PHP Code:

return "<a href=\"$righturl\" target=\"_blank\">".str_replace('\"''"'$hyperlink)."</a>"


Link14716 06-27-2002 10: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.


All times are GMT. The time now is 08:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01757 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete