2012-02-28 58 views
0

您好,對不起,我已經看到了很多像這樣的問題,但對我來說沒有直接回答,單引號值符導入

首先我要說,這是延緩不逃逸單引號時,WordPress的問題有保存在數據庫中,所以我現在有,我有一個導出數據庫,我必須要恢復,但這個問題不能,

這是我的問題

INSERT INTO `demo` VALUES(1, 'wordpress\'s developers are stupid'); 

的例子現在至於爲什麼沒有按WordPress的不會在那裏運行數據庫插入mysql_real_escape_string超越了我,但我用記事本++來解決這個問題,所以我需要一個REGEX的方式來保持字符串,並取代'標記出字符串

所以我設法讓一個工作,轉換HTML標籤:

Find: =\\\'([^']*)\\\' 
    Replace: =\"\1\" 

所以我需要找到「(報價開放)\」(隨機報價)「(報價親近,在查詢下一個值之後)或」);(報價收於查詢結束)

所以我需要隨機報價改爲'

對於我文件我得到一個確切的這個錯誤

SQL query: 

INSERT INTO `wp_options` VALUES (787,0,'_transient_feed_9d5a2d683089079967601880d493887f','a:4:{s:5:\"child\";a:1:{s:0:\"\";a:1:{s:3:\"rss\";a:1:{i:0;a:6:{s:4:\"data\";s:4:\"\n \n\";s:7:\"attribs\";a:1:{s:0:\"\";a:1:{s:7:\"version\";s:3:\"2.0\";}}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:1:{s:0:\"\";a:1:{s:7:\"channel\";a:1:{i:0;a:6:{s:4:\"data\";s:83:\"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:4:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:48:\"link:http://www.agressousergroup.co.uk/ - Google Blog Search\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:85:\"http://www.google.com/search?ie=utf-8&q=link:http://www.agressousergroup.co.uk[...] 

MySQL said: 

#1366 - Incorrect string value: '\x85 item...' for column 'option_value' at row 1 

的真的很煩人的事情是,當我搜索使用「X85項目」的劇本IM沒有結果(我用記事本+ +)

精確查詢:

INSERT INTO `wp_options` VALUES (787,0,'_transient_feed_9d5a2d683089079967601880d493887f','a:4:{s:5:\"child\";a:1:{s:0:\"\";a:1:{s:3:\"rss\";a:1:{i:0;a:6:{s:4:\"data\";s:4:\"\n \n\";s:7:\"attribs\";a:1:{s:0:\"\";a:1:{s:7:\"version\";s:3:\"2.0\";}}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:1:{s:0:\"\";a:1:{s:7:\"channel\";a:1:{i:0;a:6:{s:4:\"data\";s:83:\"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:4:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:48:\"link:http://www.agressousergroup.co.uk/ - Google Blog Search\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:85:\"http://www.google.com/search?ie=utf-8&q=link:http://www.agressousergroup.co.uk/&tbm=blg&tbs=sbd:1\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:11:\"description\";a:1:{i:0;a:5:{s:4:\"data\";s:88:\"Results <b>1</b> - <b>10</b> of about <b>117</b> for <b>link:http://www.agressousergroup.co.uk/</b>.\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"item\";a:10:{i:0;a:6:{s:4:\"data\";s:47:\"\n  \n  \n  \n  \n  \n  \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:3:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:67:\"SCOM 2007 R2 Event Log Alerting and Monitoring for Azure <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:125:\"http://blogs.msdn.com/b/walterm/archive/2011/08/19/scom-2007-r2-event-log-alerting-and-monitoring-for-azure-applications.aspx\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:11:\"description\";a:1:{i:0;a:5:{s:4:\"data\";s:543:\"For this first part of setting up rules, I am essentially following guidance which can be found on TechNet at <em>http</em>://technet.microsoft.com/en-us/library/gg508734.aspx. To begin, we will launch <b>...</b> this series of documents. From the Actions pane on the far right, select the New <em>link</em>, and then from the popup menu, select the Custom Rule… item. <b>....</b> Below is my successful telnet session that was launched from the command line with the command telnet <em>localhost</em> 25. You can use anything for <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}s:32:\"http://purl.org/dc/elements/1.1/\";a:3:{s:9:\"publisher\";a:1:{i:0;a:5:{s:4:\"data\";s:53:\"Thoughts on ALM, Azure, and Agile by Walter Myers III\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:7:\"creator\";a:1:{i:0;a:5:{s:4:\"data\";s:16:\"Walter Myers III\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"date\";a:1:{i:0;a:5:{s:4:\"data\";s:29:\"Fri, 19 Aug 2011 01:02:14 GMT\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}}}i:1;a:6:{s:4:\"data\";s:47:\"\n  \n  \n  \n  \n  \n  \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:3:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:73:\"HowTo install the Brother DCP-<b>7065DN</b> in a Linux network <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:91:\"http://bleedux.wordpress.com/2011/08/01/brother-dcp-7065dn-receiving-data-but-not-printing/\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:11:\"description\";a:1:{i:0;a:5:{s:4:\"data\";s:320:\"Result: none available for the DCP-<em>7065DN</em>. <b>...</b> emacs PathToTemporaryDir/usr/local/Brother/Printer/<em>DCP7065DN</em>/cupswrapper/<em>cupswrapperDCP7065DN</em>-2.0.4 <b>...</b> If you now return to <em>http</em>://<em>localhost</em>:631/ <b>...</b> <em>Link</em> the files in the following way: <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}s:32:\"http://purl.org/dc/elements/1.1/\";a:3:{s:9:\"publisher\";a:1:{i:0;a:5:{s:4:\"data\";s:17:\"The Bleeding Edge\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:7:\"creator\";a:1:{i:0;a:5:{s:4:\"data\";s:12:\"M. Marschall\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"date\";a:1:{i:0;a:5:{s:4:\"data\";s:29:\"Mon, 01 Aug 2011 00:33:11 GMT\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}}}i:2;a:6:{s:4:\"data\";s:47:\"\n  \n  \n  \n  \n  \n  \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:3:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:74:\"Outlook Web Access Web Administration Tool - The page cannot be <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:112:\"http://community.spiceworks.com/topic/141270-outlook-web-access-web-administration-tool-the-page-cannot-be-found\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:11:\"description\";a:1:{i:0;a:5:{s:4:\"data\";s:551:\"I downloaded the Outlook Web Access Web Administration Tool from: <em>http</em>://www.microsoft.com/downloads/en/details.aspx? <b>...</b> FamilyID=<em>4bbe7065</em>-a04e-43ca-8220-859212411e10&amp;displaylang=en <b>...</b> server itself, it has been a while since had a 2003 server, but I recall similiar issues. I don&#39;t have a fix, but I do remember always RDP&#39;ing into the server and accessing the Web admin tool locally. Here is a helpful <em>link</em>. <em>http</em>://technet.microsoft.com/en-us/library/bb508837(EXCHG.65).aspx <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}s:32:\"http://purl.org/dc/elements/1.1/\";a:3:{s:9:\"publisher\";a:1:{i:0;a:5:{s:4:\"data\";s:20:\"Spiceworks Community\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:7:\"creator\";a:1:{i:0;a:5:{s:4:\"data\";s:7:\"Reg1145\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"date\";a:1:{i:0;a:5:{s:4:\"data\";s:29:\"Thu, 26 May 2011 14:45:38 GMT\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}}}i:3;a:6:{s:4:\"data\";s:47:\"\n  \n  \n  \n  \n  \n  \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:3:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:70:\"Transmittal Letter No. 661 Volume I To: Heads of Government <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:46:\"http://www.fms.treas.gov/tfm/vol1/v1p4c210.pdf\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:11:\"description\";a:1:{i:0;a:5:{s:4:\"data\";s:520:\"<em>http</em>://www.paymentaccuracy. gov used to post specified improper payment information submitted by agencies, consist- ent with the requirements of. Executive Order 13520, § 2.(b). This official Web site also is used to collect from the public <b>...</b> changes, and <em>links</em> to additional resources and information otherwise available on the. Internet. The timelines for agencies to submit required improper payments information for posting on the PaymentAccuracy.gov. Web site are discussed in <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}s:32:\"http://purl.org/dc/elements/1.1/\";a:3:{s:9:\"publisher\";a:1:{i:0;a:5:{s:4:\"data\";s:16:\"FMS Publications\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:7:\"creator\";a:1:{i:0;a:5:{s:4:\"data\";s:7:\"unknown\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"date\";a:1:{i:0;a:5:{s:4:\"data\";s:29:\"Thu, 14 Apr 2011 19:34:56 GMT\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}}}i:4;a:6:{s:4:\"data\";s:47:\"\n  \n  \n  \n  \n  \n  \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:3:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:21:\"????? - ????\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:41:\"http://toos-iran.blogfa.com/post-171.aspx\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:11:\"description\";a:1:{i:0;a:5:{s:4:\"data\";s:781:\"?????? ???? d-<em>link</em> 300t ???? adsl ??????? (---) 6295. <b>....</b> ??? <em>localhost</em> ????? 127.0.0.1 ????? 6421. <b>....</b> ??? ???? ???? ? ???? ?? ???? ???? ?????? (TP-<em>Link</em> TD-W8901G) 6541. <b>....</b> ??????? ???????? ??? ????? ?? <em>http</em>://www.demonoid.com/ 6830. <b>....</b> <em>7065</em>. ?? chat ???? 7066. ?????? ???? ???? ADSL 7067. ???? ???? ?? ??????? wireless ???? 7068. ????? ????? ?? ??? ????? ??? ???? ???? 7069. ????? ??????? ???? ????? ?? ??? 2003 7070. ???? ???? ??????? 7071. ???? ** ?????? 7072. ?????? <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}s:32:\"http://purl.org/dc/elements/1.1/\";a:3:{s:9:\"publisher\";a:1:{i:0;a:5:{s:4:\"data\";s:10:\"?????\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:7:\"creator\";a:1:{i:0;a:5:{s:4:\"data\";s:9:\"toos-iran\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"date\";a:1:{i:0;a:5:{s:4:\"data\";s:29:\"Wed, 23 Mar 2011 07:00:00 GMT\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}}}i:5;a:6:{s:4:\"data\";s:47:\"\n  \n  \n  \n  \n  \n  \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:3:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:52:\"Learning Ruby: Expert Advice for Advanced Developers\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:50:\"http://mashable.com/2011/02/02/advanced-ruby-code/\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:11:\"description\";a:1:{i:0;a:5:{s:4:\"data\";s:324:\"<em>http</em>://<em>localhost</em>:9292/to_a -&gt; 123. # <em>http</em>://<em>localhost</em>:9292/pop -&gt; 3. # <em>http</em>://<em>localhost</em>:9292/shift -&gt; 1. # Implementations in other languages (thanks guys!): # Node.js: <em>https</em>://gist.github.com/700995. # Groovy: https://gist.github.com/702337 <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}s:32:\"http://purl.org/dc/elements/1.1/\";a:3:{s:9:\"publisher\";a:1:{i:0;a:5:{s:4:\"data\";s:9:\"Mashable!\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:7:\"creator\";a:1:{i:0;a:5:{s:4:\"data\";s:12:\"Jolie O\'Dell\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"date\";a:1:{i:0;a:5:{s:4:\"data\";s:29:\"Wed, 02 Feb 2011 13:40:03 GMT\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}}}i:6;a:6:{s:4:\"data\";s:47:\"\n  \n  \n  \n  \n  \n  \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:3:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:69:\"Sending Email Alert for Application Current State « Middleware Magic\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:43:\"http://middlewaremagic.com/weblogic/?p=7042\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:11:\"description\";a:1:{i:0;a:5:{s:4:\"data\";s:535:\"If you see an Empty Classpath even after running the 「setWLSEnv.sh」 then please refer to the Note mentioned at Step3) in the Following post: <em>http</em>://middlewaremagic.com/weblogic/?page_id=1492 Step-5) Now run the WLST Script in the same <b>...</b> total.number.of.servers=3. server.name.1=AdminServer server.url.1=t3://<em>localhost</em>:7001. server.name.2=MS-1 server.url.2=t3://<em>localhost</em>:5001. server.name.3=MS-2 server.url.3=t3://<em>localhost</em>:6001. # Check Server State At following interval in <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}s:32:\"http://purl.org/dc/elements/1.1/\";a:3:{s:9:\"publisher\";a:1:{i:0;a:5:{s:4:\"data\";s:16:\"Middleware Magic\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:7:\"creator\";a:1:{i:0;a:5:{s:4:\"data\";s:11:\"Ravish Mody\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"date\";a:1:{i:0;a:5:{s:4:\"data\";s:29:\"Thu, 07 Jul 2011 12:38:30 GMT\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}}}i:7;a:6:{s:4:\"data\";s:47:\"\n  \n  \n  \n  \n  \n  \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:3:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:54:\"Server Kurulumu : Hatalar , Sorunlar , Bilmedikleriniz\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:89:\"http://pvp-serverler.forumclan.com/t2019-server-kurulumu-hatalar-sorunlar-bilmedikleriniz\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:11:\"description\";a:1:{i:0;a:5:{s:4:\"data\";s:644:\"Host:HamachiIp.100// <em>Localhost</em> // 192.168.2.100. Port:3306[Mysql Port] ID:Root PW:123456[Degistirmediyseniz] <b>....</b> pc . give_item2 (&quot;<em>7065</em>&quot; , 1) pc . give_item2 (&quot;11835&quot; , 1) pc . give_item2 (&quot;12645&quot; , 1) pc . give_item2 (&quot;13025&quot; , 1) pc . give_item2 (&quot;14105&quot; , 1) pc . give_item2 (&quot;15089&quot; , 1) pc . give_item2 (&quot;16105&quot; , 1) pc . give_item2 (&quot;17105&quot; , 1) say_reward (&quot;Du erhielst Super Eline Saglk . Schamiset!&quot;) end <b>...</b> Kullanici profilini gör <em>http</em>://pvp-serverler.forumclan.com <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}s:32:\"http://purl.org/dc/elements/1.1/\";a:3:{s:9:\"publisher\";a:1:{i:0;a:5:{s:4:\"data\";s:71:\"Metin2 PVP Serverler l Private Serverler l Knight Private Serverler l :\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:7:\"creator\";a:1:{i:0;a:5:{s:4:\"data\";s:10:\"MrLeqandry\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"date\";a:1:{i:0;a:5:{s:4:\"data\";s:29:\"Thu, 06 Jan 2011 15:59:17 GMT\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}}}i:8;a:6:{s:4:\"data\";s:47:\"\n  \n  \n  \n  \n  \n  \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:3:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:51:\"CARA SPYWARE MENGINFEKSI KOMPUTER « Lombok_Creck84\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:74:\"http://creck84.wordpress.com/2010/12/28/cara-spyware-menginfeksi-komputer/\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:11:\"description\";a:1:{i:0;a:5:{s:4:\"data\";s:522:\"Seorang penyerang remote bisa membuat <em>link</em> URL dibuat menggunakan Objek Data Tag akan dieksekusi di web browser&#39;s korban dalam konteks keamanan dari situs hosting, setelah <em>link</em> diklik. Para penyerang memanfaatkan <b>...</b> <em>HTTP</em>/1.1 200 OK Tanggal: Mon, 18 April 2005 12: 27: 30 GMTServer: Apache/1.3.33 (Unix) mod_deflate/1.0.21 Koneksi: tutup Transfer - Encoding: chunked Content - Type: application/HTA script &lt; bahasa =&gt; JScript try { . Diri moveTo (5000, 5000); <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}s:32:\"http://purl.org/dc/elements/1.1/\";a:3:{s:9:\"publisher\";a:1:{i:0;a:5:{s:4:\"data\";s:14:\"Lombok_Creck84\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:7:\"creator\";a:1:{i:0;a:5:{s:4:\"data\";s:14:\"Lombok_Creck84\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"date\";a:1:{i:0;a:5:{s:4:\"data\";s:29:\"Tue, 28 Dec 2010 04:51:11 GMT\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}}}i:9;a:6:{s:4:\"data\";s:47:\"\n  \n  \n  \n  \n  \n  \n \";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";s:5:\"child\";a:2:{s:0:\"\";a:3:{s:5:\"title\";a:1:{i:0;a:5:{s:4:\"data\";s:42:\"???????? ? telnet - ZABBIX Forums\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"link\";a:1:{i:0;a:5:{s:4:\"data\";s:50:\"http://www.zabbix.com/forum/showthread.php?t=20387\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:11:\"description\";a:1:{i:0;a:5:{s:4:\"data\";s:553:\"<em>http</em>://www.zabbix.com/documentation/...l/config/items <b>...</b> [[email protected]<em>localhost</em> ~]# /usr/sbin/tcpdump -i eth0 -s 0 -X &quot;host 192.168.1.52 and tcp port 10010&quot; tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, <em>link</em> -type EN10MB (Ethernet), capture size 65535 bytes <b>...</b> command&gt;&quot;.fo 0x00a0: 7220 696e 666f 726d 6174 696f 6e20 6f6e r.information.on 0x00b0: 2061 2073 <em>7065</em> 6369 6669 6320 636f 6d6d .a.specific.comm 0x00c0: 616e 642e 0a0d and. <b>...</b>\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}s:32:\"http://purl.org/dc/elements/1.1/\";a:3:{s:9:\"publisher\";a:1:{i:0;a:5:{s:4:\"data\";s:13:\"ZABBIX Forums\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:7:\"creator\";a:1:{i:0;a:5:{s:4:\"data\";s:5:\"angro\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:4:\"date\";a:1:{i:0;a:5:{s:4:\"data\";s:29:\"Mon, 27 Dec 2010 23:11:53 GMT\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}}}}}s:36:\"http://a9.com/-/spec/opensearch/1.1/\";a:3:{s:12:\"totalResults\";a:1:{i:0;a:5:{s:4:\"data\";s:3:\"117\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:10:\"startIndex\";a:1:{i:0;a:5:{s:4:\"data\";s:1:\"1\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}s:12:\"itemsPerPage\";a:1:{i:0;a:5:{s:4:\"data\";s:2:\"10\";s:7:\"attribs\";a:0:{}s:8:\"xml_base\";s:0:\"\";s:17:\"xml_base_explicit\";b:0;s:8:\"xml_lang\";s:0:\"\";}}}}}}}}}}}}s:4:\"type\";i:128;s:7:\"headers\";a:7:{s:12:\"content-type\";s:28:\"text/xml; charset=ISO-8859-1\";s:4:\"date\";s:29:\"Tue, 11 Oct 2011 09:59:27 GMT\";s:7:\"expires\";s:2:\"-1\";s:13:\"cache-control\";s:18:\"private, max-age=0\";s:10:\"set-cookie\";a:2:{i:0;s:143:\"PREF=ID=f20c4b1c78116086:FF=0:TM=1318327167:LM=1318327168:S=JmwTN04g_cBBkXlQ; expires=Thu, 10-Oct-2013 09:59:28 GMT; path=/; domain=.google.com\";i:1;s:212:\"NID=51=kumBg-YqiVjIylrlQZnAp1IHv6-PAK1TIMAXdUBv4d9njuL-S5g35y0ZJYHQQxUJrc3rG8i2vRNHvkb_Ydpag_xqTuIEihrf2G0LM2c6pTZ6imb8lozQWVJOKQoEV4gm; expires=Wed, 11-Apr-2012 09:59:28 GMT; path=/; domain=.google.com; HttpOnly\";}s:6:\"server\";s:3:\"gws\";s:16:\"x-xss-protection\";s:13:\"1; mode=block\";}s:5:\"build\";s:14:\"20090627192103\";}','no'); 

回答

1

稍微偏離主題,但:

當然這個問題不是數據庫沒有逃脫引號。在數據庫中有非轉義的內容是完全有效的,因爲否則您將數據庫中的數據與特定的表示層(HTML)結合使用...

表示層的責任是確保所有內容均安全顯示。如果您正在重新導入數據到同一個應用程序,它仍然無法輸出轉義,那麼如果你改變了報價'&#39;,將在程序邏輯逃脫輸出:

wordpress&amp;#39;s developers are stupid 

上面的INSERT語句已經被轉義(畢竟,反斜槓會轉義引號字符),並根據reference manual,wordpress\'swordpress'smysql_real_escape_string()的結果。

所以,如果你真的想改變引號,因爲它們已經被轉義了,你可以直接替換\'&quot;,但我懷疑你可能會遇到其他問題。

EDIT(基於更新後):

我相信你可能遇到了一個字符編碼問題。根據您輸入線,我認爲問題源於:

select the Custom Rule… item 

字符不能在字符集(當然承認,當我貼你投入我的編輯,把它改成一個黑盒子檢查您的文件編碼是正確的,是UTF-8(或任何MySQL中期望的),而不是在文件傳輸或東西被截斷。

+0

出於某種原因,這是不是這樣的,雖然我在MySQL工作臺,phpMyAdmin的,並試圖Navicat的精簡版沒有這些可以導入它只是給有關的東西錯誤是意外(和一些事情,我的意思是它發現了「EG的情況下的第一項以上這將是單曲'因爲它不是一個MySQL的函數 – 2012-02-28 11:55:22

+0

您可以用'mysql'在命令行中,做:'MySQL的「源scriptfile.sql' – beny23 2012-02-28 11:58:22

+0

服務器沒有不可原諒的,這是要我們到終端沒有接入CORP網絡服務器(CMD)系統,我可以用我的本地安裝mysql並連接到服務器上,但我不認爲在現場管理員將與我很高興 – 2012-02-28 12:05:38