8000 Supporting filter_friendly_name by wanjunsli · Pull Request #245 · twilio/twilio-python · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@wanjunsli
Copy link
Contributor

No description provided.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This repr isn't consistent with the variable names.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is default=lambda o: o.__dict__, necessary when expected_config_data is a dict?

@wanjunsli
Copy link
Contributor Author

Reverted all changes. Per convo with @jwitz10, stripping user input of "filter_friendly_name" and using "friendly_name" instead.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is very dangerous. If the user has filter_friendly_name in the expression or some other value, this will break their software.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just going on record and saying that I have absolutely no idea what this is
and have never been involved and don't know u people. Good luck with your
software! :))

On Tue, Jan 19, 2016 at 6:11 PM, Ragil notifications@github.com wrote:

In twilio/task_router/workflow_config.py
#245 (comment):

@@ -21,6 +21,9 @@ def to_json(self):

 @staticmethod
 def json2obj(data):
  •    # replace instances of "filter_friendly_name" with "friendly_name"
    
  •    data = data.replace("filter_friendly_name", "friendly_name")
    

this is very dangerous. If the user has filter_friendly_name in the
expression or some other value, this will break their software.


Reply to this email directly or view it on GitHub
https://github.com/twilio/twilio-python/pull/245/files#r50197230.

Jake Witz
Member Relations & Communications
Wisconsin Union Membership Offices
(847) 999 8755

@Ragil
Copy link
Ragil commented Jan 20, 2016

+1

jingming added a commit that referenced this pull request Jan 28, 2016
@jingming jingming merged commit 02dda06 into twilio:master Jan 28, 2016
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

Successfully merging this pull request may close these issues.

3 participants

0