sartic wrote:"Removed: SendNetworkFile(), RecieveNetworkFile(), #PB_NetworkEvent_File to avoid possible security hole"
do not like it i have one old program that use this 2 commands.
maybe it is time to rewrite it
+999999
sartic wrote:"Removed: SendNetworkFile(), RecieveNetworkFile(), #PB_NetworkEvent_File to avoid possible security hole"
do not like it i have one old program that use this 2 commands.
maybe it is time to rewrite it
using ReceiveNetworkData/SendNetworkData to safer, here:American Ninja wrote:How do we send files over a network now??? We have to write our own procedures??? I wouldn't know how. This is a bad decision. BASIC is supposed to be easy.![]()
![]()
And that is "better/safer" than the included command set?using ReceiveNetworkData/SendNetworkData to safer, here:
http://www.purebasic.fr/english/viewtop ... 13&t=52705
OK, that is your wish.Anden wrote:And that is "better/safer" than the included command set?using ReceiveNetworkData/SendNetworkData to safer, here:
http://www.purebasic.fr/english/viewtop ... 13&t=52705
This is called the "wishes release" and i didn't wish for removal of an essential command set.
Improve it, fix it, make it better but don't remove without proper internal replacement. THAT's a real wish ...
Sorry, no can do!sec wrote:Nevermind!
Regardless if Basic or something else: an IDE has to be stable, stable and then stable. Removing something from the core is NOT stable, nor professional.PMV wrote:This will be hard ... so sit down before reading.![]()
Basic is not supposed to do everything for you with a single command.
If you want to call yourself programmer, you shouldn't have a big
problem by writing the "sendfile"-command yourself. Of course it is
not that easy, because it is a little bit more complex functionality, but
it was breaking more then helping ...
And btw. if you have got it to work stable, you will have learned a
lot of important topics about network.![]()
MFG PMV
You should take a look to the bug forums, you will see we are fixing a lot of bugs. This one was not fixable, because it was badly thinked from the start. It was an easy to use command because the server itself checked every recieved packet to see if there was the magic value set by SendNetworkFile(). The problem is if one of your client send the same magic value without sending the file after that, your server will crash. That was a security hole, which couldn't be fixed, so we removed the faulty commands. Also it's easy to replace with buildin commands, so you are not left in the dust (unlike AppleAnden wrote:So that's the pure way: If it's broken dump it on the way, fixing is for lamers only?
Programming with network-commands is a bit more as just to say ... it will be save.Michael Vogel wrote:I've never needed the FileSend/Receive commands and didn't expect a discussion about them in this thread, but now I'm curious: which kind of security hole is present in the official released PureBasic versions? As I understood it, everything will be safe in the upcoming version 5.10, even if someone writes his own FileSend/Receive procedures - right?