Index: trunk/phase3/maintenance/addwiki.php |
— | — | @@ -150,12 +150,13 @@ |
151 | 151 | # passthru( '/home/wikipedia/conf/interwiki/update' ); |
152 | 152 | |
153 | 153 | $time = wfTimestamp( TS_RFC2822 ); |
154 | | - $escDbName = wfEscapeShellArg( $dbname ); |
155 | | - $escTime = wfEscapeShellArg( $time ); |
156 | | - $escUcsite = wfEscapeShellArg( $ucsite ); |
157 | | - $escName = wfEscapeShellArg( $name ); |
158 | | - $escLang = wfEscapeShellArg( $lang ); |
159 | | - $escDomain = wfEscapeShellArg( $domain ); |
| 154 | + // These arguments need to be escaped twice: once for echo and once for at |
| 155 | + $escDbName = wfEscapeShellArg( wfEscapeShellArg( $dbname ) ); |
| 156 | + $escTime = wfEscapeShellArg( wfEscapeShellArg( $time ) ); |
| 157 | + $escUcsite = wfEscapeShellArg( wfEscapeShellArg( $ucsite ) ); |
| 158 | + $escName = wfEscapeShellArg( wfEscapeShellArg( $name ) ); |
| 159 | + $escLang = wfEscapeShellArg( wfEscapeShellArg( $lang ) ); |
| 160 | + $escDomain = wfEscapeShellArg( wfEscapeShellArg( $domain ) ); |
160 | 161 | shell_exec( "echo notifyNewProjects $escDbName $escTime $escUcsite $escName $escLang $escDomain | at now + 15 minutes" ); |
161 | 162 | |
162 | 163 | $this->output( "Script ended. You still have to: |