iOS Question Sending html text with Download2

kohle

Active Member
Licensed User
Longtime User
I am sending a html text via php script to my server :

j.Download2(Main.GL_EditUrl,Array As String("c",HtmLtext,"id",idCal,"ma",gl_mandant))

Only a part of the htmltext is transfered. Here it cuts at #0A : <body%20bgcolor=#0A2A12%

Is there a function or something similar to htmlspecialchars() in php.

Or how I change the html text so it can be transfered
 

kohle

Active Member
Licensed User
Longtime User
Ok. I found the problem. When the htmltext contains the simple '
like <font size='4' > and an update sql string is build in the php script
like $sql="update table set html='" . $htmtext."' where id=1111"
it must be replaced to " like <font size="4" >
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Ok. I found the problem. When the htmltext contains the simple '
like <font size='4' > and an update sql string is build in the php script
like $sql="update table set html='" . $htmtext."' where id=1111"
it must be replaced to " like <font size="4" >
I really hope you are in total control of what makes up $htmtext or you're setting yourself up for some major SQL injection issues. You may want to investigate parameterized queries in PHP.
 
Upvote 0
Top