vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   What does this mean?? (https://vborg.vbsupport.ru/showthread.php?t=55657)

MistyMeanor 07-27-2003 06:24 PM

What does this mean??
 
What does this mean?? This member has said that she gets kicked off the forum every 5 minutes, and can't view the link we have for our Signature Tags. But no one else seems to be having this problem??

Database error in vBulletin 2.2.9:

Invalid SQL: UPDATE webtemplates SET lastvisitorname='Lovin' Momma', lastvisittime='01:17 PM' WHERE title='sig_tags'
mysql error: You have an error in your SQL syntax near 'Momma', lastvisittime='01:17 PM' WHERE title='sig_tags'' at line 1

mysql error number: 1064

Date: Sunday 27th of July 2003 01:17:00 PM
Script: http://www.eotc-pets.com/vb/forums/v...hp?pg=sig_tags
Referer: http://www.eotc-pets.com/vb/forums/index.php?s=&menu=2

grog6 07-27-2003 07:00 PM

You have installed a hack using the webtemplate table ...

Moreover the query used for this hack isn't correct whith the name of your membre which is : Lovin' Momma

The ' included in his username makes the query wrong, try using

Code:

UPDATE webtemplates SET lastvisitorname="Lovin' Momma", lastvisittime="01:17 PM" WHERE title="sig_tags"
;)

Xenon 07-28-2003 09:56 AM

seems someone has forgotten to do a addslashes() around the usernames...

Erwin 07-28-2003 10:00 AM

You can add the addslashed function to the $bbuserinfo[username] bit of the code, or just change the member's username from Lovin' Momma to Lovin Momma (remove the ' which is causing the problem).

Xenon 07-28-2003 10:10 AM

the webtemplate hack is by logician, who normaly bugfixes his hacks asap, so you should post in his supportthread so he will know that there's a bug

Logician 07-29-2003 06:59 AM

1- To fix it, edit show.php, find line:

PHP Code:

else {$gettemp1=$DB_site->query("UPDATE webtemplates SET lastvisitorname='$user_username', lastvisittime='$timenow' WHERE title='$pg'");} 

Replace it as:
PHP Code:

else {$gettemp1=$DB_site->query("UPDATE webtemplates SET lastvisitorname='".addslashes($user_username)"', lastvisittime='$timenow' WHERE title='$pg'");} 

2- You are using old version of webtemplates, I would suggest upgrade to new 2.x version

3- Please report bugs in hack threads. I run into that messagely accidently and I would never know about it.

4- Congratulations because you catch a bug in a script which is 1.5 years old. lol. I wonder how come nobody ever run into this bug before, very weird! :)

Xenon 07-29-2003 09:37 AM

noone els has users with a ' in it ^^


All times are GMT. The time now is 08:40 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
  • Page Generation 0.01143 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete