• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XOOPS Cube Legacy base repository


Commit MetaInfo

Revision69e2cfb9d707c4ab8af89ef8769d02fd0672fa57 (tree)
Time2009-03-21 13:18:28
Authormumincacao <mumincacao@704c...>
Commitermumincacao

Log Message

Fix Bug #2699408 - Specify 2nd argument of mysql_real_escape_string().

git-svn-id: https://xoopscube.svn.sourceforge.net/svnroot/xoopscube/Package_Legacy/trunk@102 704cf05f-ae62-4b0e-a484-234ee0250e75

Change Summary

Incremental Difference

--- a/docs/CHANGES.txt
+++ b/docs/CHANGES.txt
@@ -15,6 +15,7 @@ XOOPS Cube Legacy "Package_Legacy" & "XCube core" Changelog
1515 - Fix Bug #2690736 - typo: X_ITEM_TILE (X_ITEM_TITLE?) default_notify.tpl
1616 - Fix Bug #2690739 - typo in /install/include/functions.php, line 38
1717 - Fix Bug #2696701 - user_lostpass.html email maxlength too short
18+- Fix Bug #2699408 - Specify 2nd argument of mysql_real_escape_string().
1819
1920 [Bug Fix - From "XCube" Bug Tracker]
2021 - Fix Bug #2656854 - XC_CLASS_EXISTS loops infinity.
--- a/html/class/database/mysqldatabase.php
+++ b/html/class/database/mysqldatabase.php
@@ -220,7 +220,7 @@ class XoopsMySQLDatabase extends XoopsDatabase
220220 */
221221 function quoteString($str)
222222 {
223- $str = "'".mysql_real_escape_string($str)."'";
223+ $str = "'".mysql_real_escape_string($str, $this->conn)."'";
224224 return $str;
225225 }
226226