Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Security Patches
#1

OK I am curious about security patches on how they work here is a snip

of the IPB patch:

 



Code:
Index: sources/ipsclass.php =================================================================== --- sources/ipsclass.php (revision 113) +++ sources/ipsclass.php (revision 114) @@ -2481,7 +2481,7 @@ { foreach( $farray as $id => $stamp ) { - $this->forum_read[$id] = $stamp; + $this->forum_read[ intval($id) ] = intval($stamp); } } } @@ -3517,7 +3517,31 @@ } }




 

Can anyone explain what each line does here is what I think they do:

 

--- sources/ipsclass.php (revision 113)

Does this live remove the word (revision 113)

 

+++ sources/ipsclass.php (revision 114)

Does this line add (revision 114)

 

@@ -2481,7 +2481,7 @@

Not sure here

 

I am assuming that + at the front means add and - at the front means remove.

 

anyone want to explain :)

Reply
#2

Nothing special with these

 



Code:
--- PATH/FILENAME (PREVIOUS REVISION) +++ PATH/FILENAME (NEW REVISION) @@ -OLDSTARTLINE,NO OF LINES +NEWSTARTLINE,NO OF LINES @@ THE PATCH MATCHING SECTION - OLD LINES + NEW REPLACING LINES THE PATCH MATCHING SECTION




 

Hope that makes sense?

 

Oh the Previous revision should be the revision that you are actually patching...

Reply
#3
Yea that explianed good :)
Reply


Forum Jump:


Users browsing this thread: