Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add safty function PDO::quote #22

Closed
jjasoncool opened this issue Sep 24, 2019 · 2 comments
Closed

add safty function PDO::quote #22

jjasoncool opened this issue Sep 24, 2019 · 2 comments

Comments

@jjasoncool
Copy link
Contributor

jjasoncool commented Sep 24, 2019

函數內有沒有需要新增跳脫字元的函數?
這只是一個增加安全性的選項
另外你寫的程式真的很棒
簡單易懂,功能強大,學習很多!!

    public function escape($str)
    {
        return substr($this->pdo->quote($str), 1, -1);
    }

參照:https://www.php.net/manual/en/pdo.quote.php

@lincanbin
Copy link
Owner

lincanbin commented Oct 4, 2019

新增quote是不建议的做法,所以也不打算添加。
image

@jjasoncool
Copy link
Contributor Author

jjasoncool commented Oct 28, 2019

好的 感謝你
希望可以加個好友
或者群組 看大大推文學習 不敢說討論XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants