Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-27-2003, 06:24 PM
MistyMeanor's Avatar
MistyMeanor MistyMeanor is offline
 
Join Date: Sep 2002
Location: Austin, Tx
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 07-27-2003, 07:00 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #3  
Old 07-28-2003, 09:56 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seems someone has forgotten to do a addslashes() around the usernames...
Reply With Quote
  #4  
Old 07-28-2003, 10:00 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #5  
Old 07-28-2003, 10:10 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 07-29-2003, 06:59 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #7  
Old 07-29-2003, 09:37 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

noone els has users with a ' in it ^^
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03966 seconds
  • Memory Usage 2,225KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete